ServerInfoHeaderValue 속성
보고서 서버의 버전을 나타내는 서버 관련 정보입니다.
네임스페이스: ReportService2005
어셈블리: ReportService2005(ReportService2005.dll)
구문
‘선언
Public Property ServerInfoHeaderValue As ServerInfoHeader
Get
Set
‘사용 방법
Dim instance As ReportingService2005
Dim value As ServerInfoHeader
value = instance.ServerInfoHeaderValue
instance.ServerInfoHeaderValue = value
public ServerInfoHeader ServerInfoHeaderValue { get; set; }
public:
property ServerInfoHeader^ ServerInfoHeaderValue {
ServerInfoHeader^ get ();
void set (ServerInfoHeader^ value);
}
member ServerInfoHeaderValue : ServerInfoHeader with get, set
function get ServerInfoHeaderValue () : ServerInfoHeader
function set ServerInfoHeaderValue (value : ServerInfoHeader)
속성 값
유형: ReportService2005. . :: . .ServerInfoHeader
보고서 서버의 버전을 나타내는 ServerInfoHeader 개체입니다.
예
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);
}
}
}