Share via


IDeliveryReportServerInformation arabirimi için teslim uzantısı kullanma

The IDeliveryReportServerInformation interface exposes several properties that you can use to retrieve information about a report server.Bildirimler ve raporları sunmak için bu bilgileri kullanabilirsiniz.Uygularken sizin teslim uzantısı sınıfı, uygulamadan ReportServerInformation özellik tarafından gerektiği gibi IDeliveryExtension arabirim.The ReportServerInformation property returns an object that implements the IDeliveryReportServerInformation interface.Bu nesne şu anda rapor sunucusu tarafından desteklenen işleme uzantılarının bir listesini elde edebilirsiniz.

Aşağıdaki for döngü üzerinde kullanılabilir işleme uzantılarının bir listesini depolamak için kullanılabilir rapor sunucusu , bir ArrayList nesne.

Dim renderFormats As New ArrayList()
Dim e As Microsoft.ReportingServices.Interfaces.Extension
For Each e In  ReportServerInformation.RenderingExtension
   If e.Visible Then
      renderFormats.Add(e.Name)
   End If
Next e
ArrayList renderFormats = new ArrayList();
foreach (Microsoft.ReportingServices.Interfaces.Extension e in ReportServerInformation.RenderingExtension)
{ 
   if (e.Visible)
   {
      renderFormats.Add(e.Name);
   }
}