Partilhar via


Método IReportServerCredentials.GetFormsCredentials

Provides forms authentication to be used to connect to the report server.

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

Sintaxe

'Declaração
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

Parâmetros

  • authCookie
    Tipo: Cookie%
    [out] A report server authentication cookie.
  • userName
    Tipo: String%
    [out] The name of the user.
  • password
    Tipo: String%
    [out] The password of the user.
  • authority
    Tipo: String%
    [out] The authority to use when authenticating the user, such as a Microsoft Windows domain.

Valor de retorno

Tipo: Boolean
A Boolean value. A value of true indicates that forms authentication should be used.

Consulte também

Referência

IReportServerCredentials Interface

Namespace Microsoft.Reporting.WinForms