Partilhar via


Propriedade ReportServerCredentials.ImpersonationUser

Specifies the user to impersonate when connecting to the report server.

Namespace:  Microsoft.Reporting.WinForms
Assembly:  Microsoft.ReportViewer.WinForms (em Microsoft.ReportViewer.WinForms.dll)

Sintaxe

'Declaração
Public Property ImpersonationUser As WindowsIdentity
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)

Valor de propriedade

Tipo: WindowsIdentity
A WindowsIdentity object encapsulating the user to impersonate when connecting to a report server.

Implementações

IReportServerCredentials.ImpersonationUser

Comentários

The ReportViewer control will to attempt to connect to the report server as the current thread user if this property is not set.

Consulte também

Referência

ReportServerCredentials Classe

Namespace Microsoft.Reporting.WinForms