ASP.NET MVC 6.3.16
Demos Support Blog Download
Show / Hide Table of Contents
PDF

Class DataSourceCredentials

Represents data source credentials.

Inheritance
System.Object
DataSourceCredentials
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: BoldReports.Web
Assembly: BoldReports.Web.dll
Syntax
public sealed class DataSourceCredentials

Constructors

DataSourceCredentials()

Initializes a new instance of the DataSourceCredentials class.

Declaration
public DataSourceCredentials()

DataSourceCredentials(String, String)

Initializes a new instance of the DataSourceCredentials class.

Declaration
public DataSourceCredentials(string name, string connectionString)
Parameters
Type Name Description
System.String name

The name of the data source to connect.

System.String connectionString

It contains the database name, user Id, password.

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.

DataSourceCredentials(String, String, String, Boolean)

Initializes a new instance of the DataSourceCredentials class.

Declaration
public DataSourceCredentials(string name, string password, string userId, bool integratedSecurity)
Parameters
Type Name Description
System.String name

The name of the datasource to connect.

System.String password

The password to connect the datasource.

System.String userId

The user Id to connect the datasource.

System.Boolean integratedSecurity

If set to true,then current Windows account credentials are used ; otherwise, false.

DataSourceCredentials(String, String, String, String)

Initializes a new instance of the DataSourceCredentials class.

Declaration
public DataSourceCredentials(string name, string userId, string password, string connectionString)
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.

System.String connectionString

It contains the database name, user Id, password.

DataSourceCredentials(String, String, String, String, Boolean)

Initializes a new instance of the DataSourceCredentials class.

Declaration
public DataSourceCredentials(string name, string userId, string password, string connectionString, bool integratedSecurity)
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.

System.String connectionString

It contains the database name, user Id, password.

System.Boolean integratedSecurity

If set to true,then current Windows account credentials are used ; otherwise, false.

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

In This Article
Was this page helpful? Yes No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
×
SEND FEEDBACK REGARDING THIS TOPIC

Please provide additional information

Please provide additional information

Please provide additional information

Please provide additional information
Please provide additional information
Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved