Freigeben über


ReportServiceAuthentication.LogonUser(String, String, String, String) Methode

Definition

Meldet einen Benutzer an und authentifiziert eine Benutzeranforderung an den Berichtsserver-Webdienst.

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);
[<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)>]
member this.LogonUser : string * string * string * string -> bool
Public Function LogonUser (userName As String, password As String, authority As String, ByRef cookieName As String) As Boolean

Parameter

userName
String

Der Name des Benutzers.

password
String

Das Kennwort für den Benutzer.

authority
String

Optional. Der beim Authentifizieren eines Benutzers zu verwendende Domänenname. Übergeben Sie den Wert null (Nothing in Visual Basic), um dieses Argument auszulassen.

cookieName
String

Der dem Cookie zugewiesene Name.

Gibt zurück

true, wenn der Benutzer erfolgreich authentifiziert wurde; andernfalls false.

Attribute

Gilt für: