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 헤더 (Out) ServerInfoHeaderValue
필요한 권한 없음

보고서 서버에 대한 SecureConnectionLevel 설정은 메서드에서 반환 ListSecureMethods 되는 SOAP 메서드 목록을 결정합니다. 자세한 내용은 Using Secure Web Service Methods을 참조하세요.

적용 대상