IDeliveryExtension.ExtensionSettings 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取传递扩展插件用于创建通知或报表的设置列表。
public:
property cli::array <Microsoft::ReportingServices::Interfaces::Setting ^> ^ ExtensionSettings { cli::array <Microsoft::ReportingServices::Interfaces::Setting ^> ^ get(); };
public Microsoft.ReportingServices.Interfaces.Setting[] ExtensionSettings { get; }
member this.ExtensionSettings : Microsoft.ReportingServices.Interfaces.Setting[]
Public ReadOnly Property ExtensionSettings As Setting()
属性值
Setting[]
传递扩展插件的设置。
示例
下面的代码示例返回可能在将报表发送到打印机的传递提供程序中使用的设置。
Visual Basic implementation not available for this release.
private Setting[] m_settings = null;
// Public property implementation
public Setting[] ExtensionSettings
{
get
{
if (m_settings == null)
{
m_settings = new Setting[3];
m_settings[0] = new Setting();
m_settings[0].Name = SubscriptionData.PRINTER;
m_settings[0].ReadOnly = false;
m_settings[0].Required = true;
// Add the printer names that were retrieved from the
// configuration file to the set of valid values for
// the setting
foreach (string printer in m_printers)
{
m_settings[0].AddValidValue(printer.ToString(), printer.ToString());
}
// Setting for page height
m_settings[1] = new Setting();
m_settings[1].Name = SubscriptionData.PAGEHEIGHT;
m_settings[1].ReadOnly = false;
m_settings[1].Required = true;
m_settings[1].Value = "11";
// Setting for page width
m_settings[2] = new Setting();
m_settings[2].Name = SubscriptionData.PAGEWIDTH;
m_settings[2].ReadOnly = false;
m_settings[2].Required = true;
m_settings[2].Value = "8.5";
}
return m_settings;
}
}
注解
传递扩展插件必须实现该 ExtensionSettings 属性。 报表服务器使用由 ExtensionSettings 属性返回的值以评估传递扩展插件所要求的设置。 与传递扩展插件交互的客户端使用 GetExtensionSettings Web 服务的方法返回传递扩展插件的设置列表。 如果未正确实现此方法,则客户端无法检索扩展的设置列表,因此无法检索在订阅中使用传递扩展插件所需的信息。