ReportingService2005.ServerInfoHeaderValue ReportingService2005.ServerInfoHeaderValue ReportingService2005.ServerInfoHeaderValue Property

정의

보고서 서버의 버전을 나타내는 서버 관련 정보입니다. The server-related information that represents the version of the report server.

public:
 property ReportService2005::ServerInfoHeader ^ ServerInfoHeaderValue { ReportService2005::ServerInfoHeader ^ get(); void set(ReportService2005::ServerInfoHeader ^ value); };
public ReportService2005.ServerInfoHeader ServerInfoHeaderValue { get; set; }
Public Property ServerInfoHeaderValue As ServerInfoHeader
속성 값

ServerInfoHeader 보고서 서버의 버전을 나타내는 개체입니다. A ServerInfoHeader object that represents the version of the report server.

예제

다음 코드 예제를 컴파일하려면 Reporting Services WSDL 참조 하며 특정 네임 스페이스를 가져옵니다.To compile the following code example, you must reference the Reporting Services WSDL and import certain namespaces. 자세한 내용은 컴파일 및 코드 예제에서는 실행합니다.For more information, see Compiling and Running Code Examples. 다음 코드 예제에서는 웹 서비스를 호출 하 고 SOAP 헤더에서 서버 정보를 검색:The following code example makes a call to the Web service and then retrieves server information from the SOAP header:

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

적용 대상