次の方法で共有


LogonUser メソッド

ユーザーのログオンを処理し、レポート サーバー Web サービスへのユーザーの要求を認証します。

名前空間:  ReportServiceAuthentication
アセンブリ:  ReportServiceAuthentication (ReportServiceAuthentication.dll)

構文

'宣言
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/LogonUser", 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 LogonUser ( _
    userName As String, _
    password As String, _
    authority As String, _
    <OutAttribute> ByRef cookieName As String _
) As Boolean
'使用
Dim instance As ReportServiceAuthentication
Dim userName As String
Dim password As String
Dim authority As String
Dim cookieName As String
Dim returnValue As Boolean

returnValue = instance.LogonUser(userName, _
    password, authority, cookieName)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/LogonUser", 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 bool LogonUser(
    string userName,
    string password,
    string authority,
    out string cookieName
)
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/LogonUser", 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:
bool LogonUser(
    String^ userName, 
    String^ password, 
    String^ authority, 
    [OutAttribute] String^% cookieName
)
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/LogonUser", 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 LogonUser : 
        userName:string * 
        password:string * 
        authority:string * 
        cookieName:string byref -> bool 
public function LogonUser(
    userName : String, 
    password : String, 
    authority : String, 
    cookieName : String
) : boolean

パラメーター

  • authority
    型: System. . :: . .String
    省略可能です。ユーザーを認証するときに使用するドメイン名です。この引数を省略する場合、nullNothingnullptrunitNULL 参照 (Visual Basic では Nothing) (Visual Basic では Nothing) の値を渡します。

戻り値

型: System. . :: . .Boolean
ユーザーが正常に認証された場合は true、それ以外の場合は false です。