IReportServerCredentials.GetFormsCredentials 方法
提供將用來連接到報表伺服器的資訊 (此伺服器是為了表單驗證而設定)。
命名空間: 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
如果應該使用表單驗證為 true,否則為 false。