IReportServerCredentials.GetFormsCredentials 方法
提供用于连接到配置为使用 Forms 身份验证的报表服务器的信息。
命名空间: Microsoft.Reporting.WebForms
程序集: Microsoft.ReportViewer.WebForms(在 Microsoft.ReportViewer.WebForms.dll 中)
语法
声明
Function GetFormsCredentials ( _
<OutAttribute> ByRef authCookie As Cookie, _
<OutAttribute> ByRef userName As String, _
<OutAttribute> ByRef password As String, _
<OutAttribute> ByRef authority As String _
) As Boolean
用法
Dim instance As IReportServerCredentials
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)
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
参数
- authCookie
类型:System.Net.Cookie%
[out] 报表服务器身份验证 Cookie。
- userName
类型:System.String%
[out] 用户名。
- password
类型:System.String%
[out] 用户密码。
- authority
类型:System.String%
[out] 对用户进行身份验证时要使用的机构,如 Microsoft Windows 域。
返回值
类型:System.Boolean
如果应该使用 Forms 身份验证,则为 true;否则为 false。