Langue

ReportServiceAuthentication.LogonUser(String, String, String, String) Méthode

Définition

S’enregistre sur un utilisateur et authentifie une requête utilisateur auprès du service Web du Serveur de Rapports.

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

Paramètres

userName
String

Nom de l’utilisateur.

password
String

Mot de passe de l’utilisateur.

authority
String

Optional. Le nom de domaine à utiliser lors de l’authentification d’un utilisateur. Passez une valeur de null (Nothing dans Visual Basic) pour omettre cet argument.

cookieName
String

Le nom attribué au cookie.

Retours

true si l’utilisateur a été authentifié avec succès ; sinon, false.

Attributs

S’applique à