ReportingService2005.ListSecureMethods Method


返回在调用时要求安全连接的 SOAP 方法的列表。Returns a list of SOAP methods that require a secure connection when invoked.

 cli::array <System::String ^> ^ ListSecureMethods();
public string[] ListSecureMethods ();
member this.ListSecureMethods : unit -> string[]
Public Function ListSecureMethods () As String()



String对象的数组,它包含要示安全连接的方法的名称。An array of String objects containing the names of methods that require a secure connection.


若要编译此代码示例,必须引用 Reporting Services WSDL 并导入某些命名空间。To compile this code example, you must reference the Reporting Services WSDL and import certain namespaces. 有关详细信息,请参阅 编译和运行代码示例For more information, see Compiling and Running Code Examples. 下面的代码示例使用 ListSecureMethods 方法来检索当前需要安全连接的方法:The following code example uses the ListSecureMethods method to retrieve the methods that currently require a secure connection:

Imports System  

Class Sample  
   Public Shared Sub Main()  
      Dim rs As New ReportingService2005()  
      rs.Credentials = System.Net.CredentialCache.DefaultCredentials  

      Dim methods As String() = rs.ListSecureMethods()  

      If Not (methods Is Nothing) Then  
         Dim method As String  
         For Each method In  methods  
         Next method  
      End If  
   End Sub 'Main  
End Class 'Sample  
using System;  

class Sample  
   public static void Main()  
      ReportingService2005 rs = new ReportingService2005();  
      rs.Credentials = System.Net.CredentialCache.DefaultCredentials;  

      string[] methods = rs.ListSecureMethods();  

      if (methods != null)  
         foreach (string method in methods)  

SecureConnectionLevel 配置文件设置确定返回的方法的列表。The SecureConnectionLevel configuration file setting determines the list of methods that are returned.


下表显示了有关此操作的标头和权限信息。The table below shows header and permissions information on this operation.

SOAP 标头SOAP Headers (Out) ServerInfoHeaderValue(Out) ServerInfoHeaderValue
所需的权限Required Permissions None

Report Server 的 SecureConnectionLevel 设置确定方法返回的 SOAP 方法的列表 ListSecureMethodsThe SecureConnectionLevel setting for the report server determines the list of SOAP methods that are returned by the ListSecureMethods method. 有关详细信息,请参阅 Using Secure Web Service MethodsFor more information, see Using Secure Web Service Methods.

Applies to