ReportServerCredentials.ImpersonationUser 属性

指定连接到报表服务器时要模拟的用户。

命名空间:  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 控件将尝试以当前线程用户连接到报表服务器。

请参阅

参考

ReportServerCredentials 类

Microsoft.Reporting.WinForms 命名空间