Udostępnij za pośrednictwem


Metoda ReportServiceAuthentication.LogonUser

Loguje użytkownika i uwierzytelnia żądanie użytkownika do usługa sieci Web serwera raportów.

Przestrzeń nazw:  ReportServiceAuthentication
Zestaw:  ReportServiceAuthentication (w ReportServiceAuthentication.dll)

Składnia

'Deklaracja
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/LogonUser", RequestNamespace := "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices",  _
    ResponseNamespace := "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function LogonUser ( _
    userName As String, _
    password As String, _
    authority As String, _
    <OutAttribute> ByRef cookieName As String _
) As Boolean
'Użycie
Dim instance As ReportServiceAuthentication
Dim userName As String
Dim password As String
Dim authority As String
Dim cookieName As String
Dim returnValue As Boolean

returnValue = instance.LogonUser(userName, _
    password, authority, cookieName)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/LogonUser", RequestNamespace = "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", 
    ResponseNamespace = "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public bool LogonUser(
    string userName,
    string password,
    string authority,
    out string cookieName
)
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/LogonUser", RequestNamespace = L"https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", 
    ResponseNamespace = L"https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", 
    Use = SoapBindingUse::Literal, ParameterStyle = SoapParameterStyle::Wrapped)]
public:
bool LogonUser(
    String^ userName, 
    String^ password, 
    String^ authority, 
    [OutAttribute] String^% cookieName
)
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/LogonUser", RequestNamespace = "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", 
    ResponseNamespace = "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)>]
member LogonUser : 
        userName:string * 
        password:string * 
        authority:string * 
        cookieName:string byref -> bool 
public function LogonUser(
    userName : String, 
    password : String, 
    authority : String, 
    cookieName : String
) : boolean

Parametry

  • authority
    Typ: System.String
    Opcjonalne.Nazwa domena używana podczas uwierzytelniania użytkownika.Przekazać wartość nullodwołanie o wartości null (Nothing w języku Visual Basic) (nic nie w języku Visual Basic), aby pominąć ten argument.
  • cookieName
    Typ: System.String%
    Nazwa przypisana do pliku cookie.

Wartość zwracana

Typ: System.Boolean
TRUE , jeśli użytkownik został pomyślnie uwierzytelniony; w przeciwnym razie false.