Partager via


IReportServerCredentials.GetFormsCredentials, méthode

Fournit l'authentification par formulaires à utiliser pour la connexion au serveur de rapports.

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

Syntaxe

'Déclaration
Function GetFormsCredentials ( _
    <OutAttribute> ByRef authCookie As Cookie, _
    <OutAttribute> ByRef userName As String, _
    <OutAttribute> ByRef password As String, _
    <OutAttribute> ByRef authority As String _
) As Boolean
bool GetFormsCredentials(
    out Cookie authCookie,
    out string userName,
    out string password,
    out string authority
)
bool GetFormsCredentials(
    [OutAttribute] Cookie^% authCookie, 
    [OutAttribute] String^% userName, 
    [OutAttribute] String^% password, 
    [OutAttribute] String^% authority
)
abstract GetFormsCredentials : 
        authCookie:Cookie byref * 
        userName:string byref * 
        password:string byref * 
        authority:string byref -> bool 
function GetFormsCredentials(
    authCookie : Cookie, 
    userName : String, 
    password : String, 
    authority : String
) : boolean

Paramètres

  • authCookie
    Type : Cookie%
    [out] Cookie d'authentification du serveur de rapports.
  • userName
    Type : String%
    [out] Nom de l'utilisateur.
  • password
    Type : String%
    [out] Mot de passe de l'utilisateur.
  • authority
    Type : String%
    [out] Autorité à utiliser lors de l'authentification de l'utilisateur (par exemple un domaine Microsoft Windows).

Valeur de retour

Type : Boolean
Valeur Boolean.La valeur true indique que l'authentification par formulaires doit être utilisée.

Voir aussi

Référence

IReportServerCredentials Interface

Microsoft.Reporting.WinForms, espace de noms