次の方法で共有


ServerReport.Cookies プロパティ

Cookie オブジェクトのコレクションを取得します。ServerReport オブジェクトは、サーバー要求を行うときに、このコレクションにあるクッキーを使用します。

名前空間:  Microsoft.Reporting.WinForms
アセンブリ:  Microsoft.ReportViewer.WinForms (Microsoft.ReportViewer.WinForms.dll 内)

構文

'宣言
<BrowsableAttribute(False)> _
Public ReadOnly Property Cookies As ReportViewerCookieCollection
[BrowsableAttribute(false)]
public ReportViewerCookieCollection Cookies { get; }
[BrowsableAttribute(false)]
public:
property ReportViewerCookieCollection^ Cookies {
    ReportViewerCookieCollection^ get ();
}
[<BrowsableAttribute(false)>]
member Cookies : ReportViewerCookieCollection with get
function get Cookies () : ReportViewerCookieCollection

プロパティ値

型 : Microsoft.Reporting.WinForms.ReportViewerCookieCollection
Cookie オブジェクトのコレクションを含む ReportViewerCookieCollection オブジェクト。

解説

サーバー要求でカスタム認証クッキーを使用するため、このコレクション プロパティにカスタム認証クッキーを追加します。

HttpWebRequest の動作とは異なり、ServerReport オブジェクトが、サーバーによって返されたクッキーを使用してこのコレクションを更新することはありません。

参照

関連項目

ServerReport クラス

Microsoft.Reporting.WinForms 名前空間