ReportServerCredentials.ImpersonationUser Property
Specifies the user to impersonate when connecting to the report server.
Namespace: Microsoft.Reporting.WinForms
Assembly: Microsoft.ReportViewer.WinForms (in microsoft.reportviewer.winforms.dll)
Syntax
'Declaration
Public Property ImpersonationUser As WindowsIdentity
'Usage
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);
}
/** @property */
public final WindowsIdentity get_ImpersonationUser ()
/** @property */
public void set_ImpersonationUser (WindowsIdentity value)
public final function get ImpersonationUser () : WindowsIdentity
public function set ImpersonationUser (value : WindowsIdentity)
Property Value
A WindowsIdentity object encapsulating the user to impersonate when connecting to a report server.
Remarks
The ReportViewer control will to attempt to connect to the report server as the current thread user if this property is not set.
See Also
Reference
ReportServerCredentials Class
ReportServerCredentials Members
Microsoft.Reporting.WinForms Namespace