Share via


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 名前空間