ReportingService2005.ServerInfoHeaderValue Property

The server-related information that represents the version of the report server.

Namespace: Microsoft.WSSUX.ReportingServicesWebService.RSManagementService2005
Assembly: ReportService2005 (in reportingservice2005.dll)

Syntax

'Declaration
Public Property ServerInfoHeaderValue As ServerInfoHeader
public ServerInfoHeader ServerInfoHeaderValue { get; set; }
public:
property ServerInfoHeader^ ServerInfoHeaderValue {
    ServerInfoHeader^ get ();
    void set (ServerInfoHeader^ value);
}
/** @property */
public ServerInfoHeader get_ServerInfoHeaderValue ()

/** @property */
public void set_ServerInfoHeaderValue (ServerInfoHeader value)
public function get ServerInfoHeaderValue () : ServerInfoHeader

public function set ServerInfoHeaderValue (value : ServerInfoHeader)

Property Value

A ServerInfoHeader object that represents the version of the report server.

Example

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

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

See Also

Reference

ReportingService2005 Class
ReportingService2005 Members
Microsoft.WSSUX.ReportingServicesWebService.RSManagementService2005 Namespace