Aracılığıyla paylaş


IDeliveryExtension.ExtensionSettings Özelliği

Tarafından kullanılan ayarların bir listesini alır teslim uzantısı bildirim veya rapor oluşturmak için.

Ad Alanı:  Microsoft.ReportingServices.Interfaces
Derlemeler:   Microsoft.ReportingServices.Interfaces (Microsoft.ReportingServices.Interfaces içinde.dll)
  Microsoft.ReportingServices.SharePoint.UI.WebParts (Microsoft.ReportingServices.SharePoint.UI.WebParts içinde.dll)

Sözdizimi

'Bildirim
ReadOnly Property ExtensionSettings As Setting()
    Get
'Kullanım
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[]

Özellik Değeri

Tür: array<Microsoft.ReportingServices.Interfaces.Setting[]
teslim uzantısı ayarları.

Açıklamalar

Teslimat uzantıları gerekir uygulamak ExtensionSettings özellik.Rapor sunucusu tarafından döndürülen değeri kullanır ExtensionSettings teslim uzantısı için gerekli ayarları değerlendirmek için özellik.Teslimat uzantıları kullanmak üzere etkileşimli istemcileri GetExtensionSettings için teslim uzantısı ayarları listesini döndürmek için Web hizmet yöntemBu, yöntem olan düzgün uygulanan istemci uzantısı için ayarları listesini alamıyor ve bu nedenle abonelik teslim uzantısı kullanmak için gerekli bilgileri alınamıyor.

Örnekler

Aşağıdaki kod örneği raporları yazıcıya gönderen bir teslim sağlayıcı kullanılabilir ayarları verir.

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