ReportServerCredentials.GetFormsCredentials 方法

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.

命名空间: Microsoft.Reporting.WinForms
程序集: Microsoft.ReportViewer.WinForms (在 microsoft.reportviewer.winforms.dll 中)

语法

声明
用法

参数

  • 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.

返回值

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.

另请参见

参考

ReportServerCredentials 类
ReportServerCredentials 成员
Microsoft.Reporting.WinForms 命名空间