ReportingService2005.ServerInfoHeaderValue Propiedad
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Información de servidor que representa la versión del servidor de informes.
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 de propiedad
Objeto ServerInfoHeader que representa la versión de la instancia del servidor de informes.
Ejemplos
Para compilar el ejemplo de código siguiente, debe hacer referencia al Reporting Services WSDL e importar determinados espacios de nombres. Para obtener más información, vea Compilar y ejecutar ejemplos de código. En el ejemplo de código siguiente se realiza una llamada al servicio web y, a continuación, se recupera la información del servidor del encabezado 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);
}
}
}