指定連接到報表伺服器時所要模擬的使用者。
命名空間: Microsoft.Reporting.WinForms
組件: Microsoft.ReportViewer.WinForms (在 Microsoft.ReportViewer.WinForms.dll 中)
語法
'宣告
Public Property ImpersonationUser As WindowsIdentity
Get
Set
'用途
Dim instance As ReportServerCredentials
Dim value As WindowsIdentity
value = instance.ImpersonationUser
instance.ImpersonationUser = value
public WindowsIdentity ImpersonationUser { get; set; }
public:
virtual property WindowsIdentity^ ImpersonationUser {
WindowsIdentity^ get () sealed;
void set (WindowsIdentity^ value) sealed;
}
abstract ImpersonationUser : WindowsIdentity with get, set
override ImpersonationUser : WindowsIdentity with get, set
final function get ImpersonationUser () : WindowsIdentity
final function set ImpersonationUser (value : WindowsIdentity)
屬性值
型別:System.Security.Principal.WindowsIdentity
WindowsIdentity 物件用來封裝連接到報表伺服器時所要模擬的使用者。
實作
IReportServerCredentials.ImpersonationUser
備註
如果未設定這個屬性,ReportViewer 控制項會試圖以目前執行緒使用者來連接到報表伺服器。