Partager via


Méthode ReportServerCredentials.GetFormsCredentials

Renvoie une valeur booléenne qui indique si l'authentification par formulaires est utilisée lors de la connexion au serveur de rapports, ainsi que les informations sur les informations d'identification par formulaires à utiliser pour l'authentification.

Espace de noms :  Microsoft.Reporting.WinForms
Assembly :  Microsoft.ReportViewer.WinForms (en Microsoft.ReportViewer.WinForms.dll)

Syntaxe

'Déclaration
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
'Utilisation
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

Paramètres

  • authCookie
    Type : System.Net.Cookie%
    [out] Cookie d'authentification utilisé par le serveur de rapports.
  • userName
    Type : System.String%
    [out] Nom d'utilisateur qui sera utilisé pour la connexion au serveur de rapports.

Valeur de retour

Type : System.Boolean
Retourne la valeur true si l'authentification par formulaires doit être utilisée lors de la connexion au serveur de rapports. Les informations sur les informations d'identification à utiliser pour l'authentification par formulaires sont renvoyées via les paramètres de sortie utilisés dans l'appel de méthode.

Implémente

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

Voir aussi

Référence

ReportServerCredentials Classe

Espace de noms Microsoft.Reporting.WinForms