Class DataSourceCredentials
Represents data source credentials.
Inheritance
Namespace: BoldReports.Web
Assembly: BoldReports.Web.dll
Syntax
public sealed class DataSourceCredentials : Object
Constructors
DataSourceCredentials()
Initializes a new instance of the DataSourceCredentials class.
Declaration
public DataSourceCredentials()
DataSourceCredentials(String, String, String)
Initializes a new instance of the DataSourceCredentials class.
Declaration
public DataSourceCredentials(string name, string userId, string password)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the datasource to connect. |
System.String | userId | The user Id to connect the datasource. |
System.String | password | The password to connect the datasource. |
Properties
ConnectionString
Gets or sets the string used to open data source connection.
Declaration
public string ConnectionString { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string containing the database name, user Id, password. |
IntegratedSecurity
Gets or sets a boolean value that indicates whether the current Windows account credentials are used for authentication or not.
Declaration
public bool IntegratedSecurity { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | If set to true,then current Windows account credentials are used ; otherwise, false. |
Name
Gets or sets the name of the data source to connect.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string containing the name of the data source |
Password
Gets or sets the password to connect the data source.
Declaration
public string Password { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string containing the password to connect the database. |
SecurityType
Gets or sets the security Type to open data source connection.
Declaration
public SecurityType SecurityType { get; set; }
Property Value
Type | Description |
---|---|
SecurityType | A Enum containing the Security Types Default, None, Windows, Database, integrated. |
UserId
Gets or sets the user Id to connect the data source.
Declaration
public string UserId { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string containing the user Id to connect the database |