ReportServiceAuthentication.LogonUser(String, String, String, String) ReportServiceAuthentication.LogonUser(String, String, String, String) ReportServiceAuthentication.LogonUser(String, String, String, String) Method

定义

使用户登录,然后验证对报表服务器 Web 服务的用户请求。 Logs on a user and authenticates a user request to the Report Server Web service.

public:
 bool LogonUser(System::String ^ userName, System::String ^ password, System::String ^ authority, [Runtime::InteropServices::Out] System::String ^ % cookieName);
[System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/LogonUser", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, RequestNamespace="http://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", ResponseNamespace="http://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
public bool LogonUser (string userName, string password, string authority, out string cookieName);
Public Function LogonUser (userName As String, password As String, authority As String, ByRef cookieName As String) As Boolean
参数
userName
String String String

用户的名称。 The name of the user.

password
String String String

用户的密码。 The password for the user.

authority
String String String

可选。 Optional. 对用户进行身份验证时使用的域名。 The domain name to use when authenticating a user. 传递的值null(Nothing在 Visual Basic 中) 以忽略此参数。 Pass a value of null (Nothing in Visual Basic) to omit this argument.

cookieName
String String String

分配给 cookie 的名称。 The name assigned to the cookie.

返回

true 如果用户成功进行身份验证;否则为false true if the user was successfully authenticated; otherwise, false.

适用于