Sprache

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

Definition

Loggt sich bei einem Benutzer an und authentifiziert eine Benutzeranfrage beim Report Server Webservice.

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

Dies ist optional. Der Domainname, den man bei der Authentifizierung eines Nutzers verwenden sollte. Geben Sie einen Wert von null (Nothing in Visual Basic) durch, um dieses Argument wegzulassen.

cookieName
String

Der Name, der dem Keks zugeordnet wurde.

Gibt zurück

true wenn der Benutzer erfolgreich authentifiziert wurde; ansonsten gilt false.

Attribute

Gilt für: