语言

ReportingService2005.ListSecureMethods 方法

定义

返回需要安全连接的SOAP方法列表。

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

返回

String[]

包含需要安全连接的方法名称的对象数组 String 。

示例

要编译此代码示例,您必须引用 Reporting Services WSDL 并导入某些命名空间。 更多信息请参见编 译与运行代码示例。 以下代码示例使用该 ListSecureMethods 方法检索当前需要安全连接的方法:

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  
            Console.WriteLine(method)  
         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)  
         {  
            Console.WriteLine(method);  
         }  
      }  
   }  
}  

SecureConnectionLevel 配置文件设置决定返回的方法列表。

注解

下表显示了该操作的头部和权限信息。

SOAP 头部 (出局) ServerInfoHeaderValue
所需的权限 None

报告服务器的 SecureConnectionLevel 设置决定了该 ListSecureMethods 方法返回的 SOAP 方法列表。 更多信息请参见 使用安全Web服务方法。

适用于