Share via


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

Definición

Inicia la sesión de un usuario y autentica una solicitud de usuario en el servicio web del servidor de informes.

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

Parámetros

userName
String

Nombre del usuario.

password
String

Contraseña del usuario.

authority
String

Opcional. Nombre de dominio que se va a utilizar al autenticar a un usuario. Pase un valor null (Nothing en Visual Basic) para omitir este argumento.

cookieName
String

Nombre asignado a la cookie.

Devoluciones

true si se autentica el usuario correctamente; en caso contrario, false.

Atributos

Se aplica a