Partilhar via


Classe DataSourceCredentials

Represents data source credentials.

Hierarquia de herança

Object
  Microsoft.Reporting.WinForms.DataSourceCredentials

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

Sintaxe

'Declaração
Public NotInheritable Class DataSourceCredentials
public sealed class DataSourceCredentials
public ref class DataSourceCredentials sealed
[<Sealed>]
type DataSourceCredentials =  class end
public final class DataSourceCredentials

O tipo DataSourceCredentials expõe os membros a seguir.

Construtores

  Nome Descrição
Método público DataSourceCredentials Constructs a DataSourceCredentials object.

Superior

Propriedades

  Nome Descrição
Propriedade pública Name Gets or sets the user name to be used by the data source for connecting to a report server.
Propriedade pública Password Gets or sets the password to be used by the data source for connecting to the report server.
Propriedade pública UserId Gets or sets the user identification to be used by the data source for connecting to 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 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 ToString Returns a string that represents the current object. (Herdado de Object.)

Superior

Comentários

This class is used to provide credentials for data sources used by server reports and is passed as an argument to the SetDataSourceCredentials method of the ServerReport class.

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