Partilhar via


Classe ReportServerCredentials

Specifies the credentials for the ReportViewer control to use when connecting to a report server.

Hierarquia de herança

Object
  Microsoft.Reporting.WinForms.ReportServerCredentials

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

Sintaxe

'Declaração
Public NotInheritable Class ReportServerCredentials _
    Implements IReportServerCredentials
public sealed class ReportServerCredentials : IReportServerCredentials
public ref class ReportServerCredentials sealed : IReportServerCredentials
[<Sealed>]
type ReportServerCredentials =  
    class
        interface IReportServerCredentials
    end
public final class ReportServerCredentials implements IReportServerCredentials

O tipo ReportServerCredentials expõe os membros a seguir.

Propriedades

  Nome Descrição
Propriedade pública ImpersonationUser Specifies the user to impersonate when connecting to the report server.
Propriedade pública NetworkCredentials Gets or sets the network credentials used for authentication with the report server.

Superior

Métodos

  Nome Descrição
Método público Equals Determines whether the specified object is equal to the current object. (Herdado de Object.)
Método público GetFormsCredentials Returns a Boolean value indicating whether forms authentication will be used when connecting to the report server, as well as information about the forms credentials to be used for authentication.
Método público GetHashCode Serves as the default hash function. (Herdado de Object.)
Método público GetType Gets the Type of the current instance. (Herdado de Object.)
Método público SetFormsCredentials Specifies that forms authentication is to be used when connecting to the report server and provides the forms credentials.
Método público ToString Returns a string that represents the current object. (Herdado de Object.)

Superior

Comentários

By default, the ReportViewer control uses the default Windows identity to connect to the report server. The ReportServerCredentials class is implemented as a property of the ReportViewer control and can be used to provide custom authentication for connecting to the report server.

Acesso thread-safe

Quaisquer membros estático (Shared no Visual Basic) públicos deste tipo são thread-safe. Não há garantia de que qualquer membro de instância seja thread-safe.

Consulte também

Referência

Namespace Microsoft.Reporting.WinForms