共用方式為


ReportServiceAuthentication.LogonUser Method

Logs on a user and authenticates a user request to the Report Server Web service.

命名空間: ReportServiceAuthentication
組件: ReportServiceAuthentication (in 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
    The name of the user.
  • password
    The password for the user.
  • authority
    The specific authority to use when authenticating a user.
  • cookieName
    The name assigned to the cookie.

傳回值

true if the user was successfully authenticated; otherwise, false.

執行緒安全性

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

平台

開發平台

如需受支援的平台清單,請參閱<安裝 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