Udostępnij za pośrednictwem


Metoda IReportServerCredentials.GetFormsCredentials —

Provides information that will be used to connect to the report server that is configured for forms authentication.

Przestrzeń nazw:  Microsoft.Reporting.WebForms
Zestaw:  Microsoft.ReportViewer.WebForms (w Microsoft.ReportViewer.WebForms.dll)

Składnia

'Deklaracja
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

Parametry

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

Wartość zwracana

Typ: Boolean
true if forms authentication should be used; otherwise, false.

Zobacz też

Informacje

IReportServerCredentials Interfejs

Przestrzeń nazw Microsoft.Reporting.WebForms