IDeliveryExtension.ExtensionSettings プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
Delivery 拡張機能が通知やレポートを作成するために使用する設定のリストを取得します。
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()
プロパティ値
デリバリー延長の設定。
例
以下のコード例は、レポートをプリンターに送信する配達プロバイダーで使われる可能性のある設定を返します。
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 プロパティから返される値を用いて、デリバリー拡張機能が要求する設定を評価します。 デリバリー拡張機能とやり取りするクライアントは、Webサービスの GetExtensionSettings メソッドを使ってデリバリー拡張機能の設定リストを返します。 この方法が適切に実装されていないと、クライアントは拡張機能の設定リストを取得できず、サブスクリプションで配信拡張機能を使用するために必要な情報を取得できません。