ReportingService2006.GetExtensionSettings Yöntemi
Bir uzantıyla ilgili ayarların bir listesini döndürür.
Ad Alanı: ReportService2006
Derleme: ReportService2006 (ReportService2006 içinde.dll)
Sözdizimi
'Bildirim
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
<SoapHeaderAttribute("TrustedUserHeaderValue")> _
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/GetExtensionSettings", RequestNamespace := "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", _
ResponseNamespace := "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", _
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function GetExtensionSettings ( _
Extension As String _
) As ExtensionParameter()
'Kullanım
Dim instance As ReportingService2006
Dim Extension As String
Dim returnValue As ExtensionParameter()
returnValue = instance.GetExtensionSettings(Extension)
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
[SoapHeaderAttribute("TrustedUserHeaderValue")]
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/GetExtensionSettings", RequestNamespace = "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices",
ResponseNamespace = "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public ExtensionParameter[] GetExtensionSettings(
string Extension
)
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
[SoapHeaderAttribute(L"TrustedUserHeaderValue")]
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/GetExtensionSettings", RequestNamespace = L"https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices",
ResponseNamespace = L"https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices",
Use = SoapBindingUse::Literal, ParameterStyle = SoapParameterStyle::Wrapped)]
public:
array<ExtensionParameter^>^ GetExtensionSettings(
String^ Extension
)
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
[<SoapHeaderAttribute("TrustedUserHeaderValue")>]
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/GetExtensionSettings", RequestNamespace = "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices",
ResponseNamespace = "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)>]
member GetExtensionSettings :
Extension:string -> ExtensionParameter[]
public function GetExtensionSettings(
Extension : String
) : ExtensionParameter[]
Parametreler
- Extension
Tür: System.String
Uzantısı olarak görüntülenir rapor sunucusu yapılandırma dosyası.Geçerli değerler rapor sunucusu e-posta, rapor sunucusu DocumentLibrary ve Rapor sunucu paylaşımına.
Dönüş Değeri
Tür: array<ReportService2006.ExtensionParameter[]
Bir dizi ExtensionParameter için bilinen ayarların listesini temsil eden nesnelerverilen bir uzantısı.
Açıklamalar
Aşağıdaki tablo üstbilgi ve izinler bu işlemi gösterir.
soap üstbilgileri |
(Giden)ServerInfoHeaderValue |
Gerekli izinler |
Hiçbiri |
Uzantı uzantısı parametreleri desteklemiyorsa, boş bir liste döndürülür.
Not
Şu anda, GetExtensionSettings yöntem destekleyen teslimat uzantıları.Diğer uzantılar henüz bu yöntem tarafından desteklenmiyor.
Örnekler
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
class Sample
{
static void Main(string[] args)
{
ReportingService2006 rs = new ReportingService2006();
rs.Url = "http://<Server Name>" +
"/_vti_bin/ReportServer/ReportService2006.asmx";
rs.Credentials =
System.Net.CredentialCache.DefaultCredentials;
ExtensionParameter[] extensionParams = null;
try
{
extensionParams =
rs.GetExtensionSettings(
"Report Server DocumentLibrary");
Console.WriteLine("Settings retrieved.");
if (extensionParams != null)
{
foreach (ExtensionParameter extensionParam
in extensionParams)
{
Console.WriteLine("Value: {0}",
extensionParam.Value);
Console.WriteLine("Name: {0}",
extensionParam.Name);
Console.WriteLine("ReadOnly: {0}",
extensionParam.ReadOnly);
Console.WriteLine("Required: {0}",
extensionParam.Required);
}
}
}
catch (SoapException e)
{
Console.WriteLine(e.Detail.InnerXml.ToString());
}
}
}
Imports System
Imports System.IO
Imports System.Text
Imports System.Web.Services
Imports System.Web.Services.Protocols
Class Sample
Public Shared Sub Main()
Dim rs As New ReportingService2006()
rs.Url = "http://<Server Name>" + _
"/_vti_bin/ReportServer/ReportService2006.asmx"
rs.Credentials = _
System.Net.CredentialCache.DefaultCredentials
Dim extensionParams As ExtensionParameter() = Nothing
Try
extensionParams = _
rs.GetExtensionSettings("Report Server " + _
"DocumentLibrary")
Console.WriteLine("Settings retrieved.")
If Not (extensionParams Is Nothing) Then
Dim extensionParam As ExtensionParameter
For Each extensionParam In extensionParams
Console.WriteLine("Value: {0}", _
extensionParam.Value)
Console.WriteLine("Name: {0}", _
extensionParam.Name)
Console.WriteLine("ReadOnly: {0}", _
extensionParam.ReadOnly)
Console.WriteLine("Required: {0}", _
extensionParam.Required)
Next extensionParam
End If
Catch e As SoapException
Console.WriteLine(e.Detail.InnerXml.ToString())
End Try
End Sub
End Class