ServerReport.Cookies 屬性

取得 Cookie 物件的集合。ServerReport 物件在提出伺服器要求時會使用這個集合中的 Cookie。

命名空間:  Microsoft.Reporting.WebForms
組件:  Microsoft.ReportViewer.WebForms (在 Microsoft.ReportViewer.WebForms.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.WebForms.ReportViewerCookieCollection
包含 Cookie 物件集合的 ReportViewerCookieCollection 物件。

備註

若要在伺服器要求中使用自訂驗證 Cookie,請將自訂驗證 Cookie 加入至這個集合屬性。

不同於 HttpWebRequest 的行為,ServerReport 物件不會以伺服器傳回的 Cookie 更新這個集合。

請參閱

參考

ServerReport 類別

Microsoft.Reporting.WebForms 命名空間