ReportServerCredentials.GetFormsCredentials メソッド
レポート サーバーへの接続時にフォーム認証が使用されるかどうかを示すブール値、および認証に使用するフォームの資格情報に関する情報を返します。
名前空間: Microsoft.Reporting.WinForms
アセンブリ: Microsoft.ReportViewer.WinForms (Microsoft.ReportViewer.WinForms.dll)
構文
'宣言
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
'使用
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
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 final function GetFormsCredentials(
authCookie : Cookie,
userName : String,
password : String,
authority : String
) : boolean
パラメーター
- authCookie
型: System.Net.Cookie%
[out] レポート サーバーによって使用される認証 Cookie。
- userName
型: System.String%
[out] レポート サーバーへの接続に使用するユーザー名。
- password
型: System.String%
- authority
型: System.String%
戻り値
型: System.Boolean
レポート サーバーへの接続時にフォーム認証が使用される場合は、true を返します。フォーム認証で使用する資格情報に関する情報は、メソッドの呼び出しで使用される出力パラメーター経由で返されます。
実装
IReportServerCredentials.GetFormsCredentials(Cookie%, String%, String%, String%)