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