ReportServerCredentials.GetFormsCredentials Method (Cookie, String, String, String)
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
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 Function GetFormsCredentials (
<OutAttribute> ByRef authCookie As Cookie,
<OutAttribute> ByRef userName As String,
<OutAttribute> ByRef password As String,
<OutAttribute> ByRef authority As String
) As Boolean
Parameters
authCookie
Type: System.Net.Cookie[out] An authentication cookie used by the report server.
userName
Type: System.String[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
Type: System.Boolean
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.
Implements
IReportServerCredentials.GetFormsCredentials(Cookie, String, String, String)
See Also
ReportServerCredentials Class
Microsoft.Reporting.WinForms Namespace
Return to top