次の方法で共有


ReportServiceAuthentication.LogonUser Method

ユーザーのログオンを処理し、レポート サーバー 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
[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
)
/** @attribute 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 boolean LogonUser (
    String userName, 
    String password, 
    String authority, 
    /** @attribute OutAttribute() */ /** @ref */ String cookieName
)
JScript は、値と型の引数の参照渡しをサポートしていません。

パラメータ

  • userName
    ユーザーの名前です。
  • password
    ユーザーのパスワードです。
  • authority
    ユーザーを認証するときに使用する特定の機関です。
  • cookieName
    Cookie に割り当てられている名前です。

戻り値

ユーザーが正常に認証された場合は true、認証されなかった場合は false です。

スレッド セーフ

この型の public static (Microsoft Visual Basic では共有 ) メンバは、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。

プラットフォーム

開発プラットフォーム

サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。

対象プラットフォーム

Windows 98, Windows 2000, Windows 2000 Server, Windows CE, Windows Server 2008, Windows 98 Second Edition, Pocket PC, Smart Phone, Windows Server 2003, Windows XP Professional with Service Pack 2 (SP2), Windows 2000 Professional, Windows 2000 Advanced Server, Windows XP Home Edition, サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。, Windows Vista, Windows Mobile 5.0, Windows Mobile 2003 for Pocket PC, Windows CE 5.0

参照

関連項目

ReportServiceAuthentication Class
ReportServiceAuthentication Members
ReportServiceAuthentication Namespace