Delen via


ReportServerCredentials.GetFormsCredentials Method

Returns a Boolean value indicating whether forms authentication will be used when connecting to the report server, as well as information about the forms credentials to be used for authentication.

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
public final boolean GetFormsCredentials (
    /** @attribute OutAttribute() */ /** @ref */ Cookie authCookie, 
    /** @attribute OutAttribute() */ /** @ref */ String userName, 
    /** @attribute OutAttribute() */ /** @ref */ String password, 
    /** @attribute OutAttribute() */ /** @ref */ String authority
)
JScript does not support passing value-type arguments by reference.

Parameters

  • authCookie
    [out] An authentication cookie used by the report server.
  • userName
    [out] The user name that will be used to connect to the report server.
  • password
    [out] The password that will be used to connect to the report server.
  • authority
    [out] The authority to use when authenticating the user, for example, a Windows domain name.

Return Value

Returns true if forms authentication is to be used when connecting to the report server. Information about the credentials to be used for forms authentication is returned via the out parameters used in the method call.

See Also

Reference

ReportServerCredentials Class
ReportServerCredentials Members
Microsoft.Reporting.WinForms Namespace