ReportServerCredentials.GetFormsCredentials-Methode

Gibt einen Boolean-Wert zurück, der angibt, ob die Verbindung mit dem Berichtsserver mithilfe der Formularauthentifizierung hergestellt wird. Außerdem sind darin Angaben zu den Anmeldeinformationen enthalten, die das Formular für die Authentifizierung verwendet.

Namespace:  Microsoft.Reporting.WinForms
Assembly:  Microsoft.ReportViewer.WinForms (in Microsoft.ReportViewer.WinForms.dll)

Syntax

'Declaration
Public Function GetFormsCredentials ( _
    <OutAttribute> ByRef authCookie As Cookie, _
    <OutAttribute> ByRef userName As String, _
    <OutAttribute> ByRef password As String, _
    <OutAttribute> ByRef authority As String _
) As Boolean
'Usage
Dim instance As ReportServerCredentials
Dim authCookie As Cookie
Dim userName As String
Dim password As String
Dim authority As String
Dim returnValue As Boolean

returnValue = instance.GetFormsCredentials(authCookie, _
    userName, password, authority)
public bool GetFormsCredentials(
    out Cookie authCookie,
    out string userName,
    out string password,
    out string authority
)
public:
virtual bool GetFormsCredentials(
    [OutAttribute] Cookie^% authCookie, 
    [OutAttribute] String^% userName, 
    [OutAttribute] String^% password, 
    [OutAttribute] String^% authority
) sealed
abstract GetFormsCredentials : 
        authCookie:Cookie byref * 
        userName:string byref * 
        password:string byref * 
        authority:string byref -> bool 
override GetFormsCredentials : 
        authCookie:Cookie byref * 
        userName:string byref * 
        password:string byref * 
        authority:string byref -> bool 
public final function GetFormsCredentials(
    authCookie : Cookie, 
    userName : String, 
    password : String, 
    authority : String
) : boolean

Parameter

  • authCookie
    Typ: System.Net.Cookie%
    [out] Ein vom Berichtsserver verwendetes Authentifizierungscookie.
  • userName
    Typ: System.String%
    [out] Der Benutzername, der für die Herstellung der Verbindung mit dem Berichtsserver verwendet wird.

Rückgabewert

Typ: System.Boolean
Gibt true zurück, wenn bei der Verbindungsherstellung mit dem Berichtsserver die Formularauthentifizierung verwendet werden soll. Angaben zu den Anmeldeinformationen für die Formularauthentifizierung werden über die im Methodenaufruf verwendeten out-Parameter zurückgegeben.

Implementiert

IReportServerCredentials.GetFormsCredentials(Cookie%, String%, String%, String%)

Siehe auch

Verweis

ReportServerCredentials Klasse

Microsoft.Reporting.WinForms-Namespace