IReportServerCredentials.ImpersonationUser 屬性
當 ReportViewer 控制項連接到報表伺服器時,取得或設定要模擬之使用者的 System.Security.Principal.WindowsIdentity。
命名空間: Microsoft.Reporting.WebForms
組件: Microsoft.ReportViewer.WebForms (在 Microsoft.ReportViewer.WebForms.dll 中)
語法
'宣告
ReadOnly Property ImpersonationUser As WindowsIdentity
Get
'用途
Dim instance As IReportServerCredentials
Dim value As WindowsIdentity
value = instance.ImpersonationUser
WindowsIdentity ImpersonationUser { get; }
property WindowsIdentity^ ImpersonationUser {
WindowsIdentity^ get ();
}
abstract ImpersonationUser : WindowsIdentity
function get ImpersonationUser () : WindowsIdentity
屬性值
型別:System.Security.Principal.WindowsIdentity
表示要模擬之使用者的 System.Security.Principal.WindowsIdentity 物件。