Share via


ReportingService2005.ServerInfoHeaderValue Propriedade

Definição

As informações relacionadas do servidor que representam a versão do servidor de relatório.

public:
 property ReportService2005::ServerInfoHeader ^ ServerInfoHeaderValue { ReportService2005::ServerInfoHeader ^ get(); void set(ReportService2005::ServerInfoHeader ^ value); };
public ReportService2005.ServerInfoHeader ServerInfoHeaderValue { get; set; }
member this.ServerInfoHeaderValue : ReportService2005.ServerInfoHeader with get, set
Public Property ServerInfoHeaderValue As ServerInfoHeader

Valor da propriedade

Um objeto ServerInfoHeader que representa a versão do servidor de relatório.

Exemplos

Para compilar o exemplo de código a seguir, você deve referenciar o Reporting Services WSDL e importar determinados namespaces. Para obter mais informações, consulte Compilando e executando exemplos de código. O exemplo de código a seguir faz uma chamada para o serviço Web e, em seguida, recupera informações do servidor do cabeçalho SOAP:

Imports System  

Class Sample  
   Shared Sub Main()  
      ' Create proxy object and set service credentials to integrated  
      Dim rs As New ReportingService2005()  
      rs.Credentials = System.Net.CredentialCache.DefaultCredentials  

      Try  
         ' Set the server info header   
         rs.ServerInfoHeaderValue = New ServerInfoHeader()  

         ' Make a call to the Web service  
         Dim items As CatalogItem() = rs.ListChildren("/", False)  

         ' Output the server version and edition to the console  
         Console.WriteLine("Server version: {0}", rs.ServerInfoHeaderValue.ReportServerVersionNumber)  
         Console.WriteLine("Server edition: {0}", rs.ServerInfoHeaderValue.ReportServerEdition)  

      Catch e As Exception  
         Console.WriteLine(e.Message)  
      End Try  
   End Sub 'Main  
End Class 'Sample  
using System;  

class Sample  
{  
   static void Main()  
   {  
      // Create proxy object and set service credentials to integrated  
      ReportingService2005 rs = new ReportingService2005();  
      rs.Credentials = System.Net.CredentialCache.DefaultCredentials;  

      try  
      {  
         // Set the server info header   
         rs.ServerInfoHeaderValue = new ServerInfoHeader();  

         // Make a call to the Web service  
         CatalogItem[] items = rs.ListChildren("/", false);  

         // Output the server version and edition to the console  
         Console.WriteLine("Server version: {0}",   
            rs.ServerInfoHeaderValue.ReportServerVersionNumber);  
         Console.WriteLine("Server edition: {0}",   
            rs.ServerInfoHeaderValue.ReportServerEdition);  
      }  

      catch (Exception e)  
      {  
         Console.WriteLine(e.Message);  
      }  
   }  
}  

Aplica-se a