ServerReport.Cookies 屬性
取得 Cookie 物件的集合。ServerReport 物件在提出伺服器要求時會使用這個集合中的 Cookie。
命名空間: Microsoft.Reporting.WinForms
組件: Microsoft.ReportViewer.WinForms (在 Microsoft.ReportViewer.WinForms.dll 中)
語法
'宣告
<BrowsableAttribute(False)> _
Public ReadOnly Property Cookies As ReportViewerCookieCollection
Get
'用途
Dim instance As ServerReport
Dim value As ReportViewerCookieCollection
value = instance.Cookies
[BrowsableAttribute(false)]
public ReportViewerCookieCollection Cookies { get; }
[BrowsableAttribute(false)]
public:
property ReportViewerCookieCollection^ Cookies {
ReportViewerCookieCollection^ get ();
}
[<BrowsableAttribute(false)>]
member Cookies : ReportViewerCookieCollection
function get Cookies () : ReportViewerCookieCollection
屬性值
型別:Microsoft.Reporting.WinForms.ReportViewerCookieCollection
包含 Cookie 物件集合的 ReportViewerCookieCollection 物件。
備註
若要在伺服器要求中使用自訂驗證 Cookie,請將自訂驗證 Cookie 加入至這個集合屬性。
不同於 HttpWebRequest 的行為,ServerReport 物件不會以伺服器傳回的 Cookie 更新這個集合。