次の方法で共有


ExtensionSettings プロパティ

配信拡張機能が通知またはレポートを作成するために使用する設定の一覧を取得します。

名前空間:  Microsoft.ReportingServices.Interfaces
アセンブリ:   Microsoft.ReportingServices.SharePoint.UI.WebParts (Microsoft.ReportingServices.SharePoint.UI.WebParts.dll)
  Microsoft.ReportingServices.Interfaces (Microsoft.ReportingServices.Interfaces.dll)

構文

'宣言
ReadOnly Property ExtensionSettings As Setting()
    Get
'使用
Dim instance As IDeliveryExtension
Dim value As Setting()

value = instance.ExtensionSettings
Setting[] ExtensionSettings { get; }
property array<Setting^>^ ExtensionSettings {
    array<Setting^>^ get ();
}
abstract ExtensionSettings : Setting[]
function get ExtensionSettings () : Setting[]

プロパティ値

型: array<Microsoft.ReportingServices.Interfaces. . :: . .Setting> [] () [] []
配信拡張機能の設定です。

説明

配信拡張機能は、ExtensionSettings プロパティを実装する必要があります。レポート サーバーは、ExtensionSettings プロパティから返された値を使用して、配信拡張機能が必要とする設定を評価します。配信拡張機能と対話するクライアントは、Web サービスの GetExtensionSettings メソッドを使用し、配信拡張機能の設定の一覧が返されます。このメソッドが正しく実装されていない場合、クライアントは拡張機能の設定の一覧を取得できず、そのためサブスクリプションで配信拡張機能を使用するために必要な情報を取得できません。

使用例

次のコード例は、プリンタにレポートを送信する配信プロバイダで使用される設定を返します。

vb#

Visual Basic implementation not available for this release.

c#

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;
   }
}