DesignerDataConnection 类

定义

在设计工具中表示到数据存储区的连接。Represents a connection to a data store in a design tool. 此类不能被继承。This class cannot be inherited.

public ref class DesignerDataConnection sealed
public sealed class DesignerDataConnection
type DesignerDataConnection = class
Public NotInheritable Class DesignerDataConnection
继承
DesignerDataConnection

注解

DesignerDataConnection对象表示与设计工具中的数据存储区的连接。The DesignerDataConnection object represents a connection to a data store in the design tool. 通常 DesignerDataConnection ,对象作为属性的一部分返回 Connections ,可通过读取应用程序的配置文件或通过调用方法来创建 BuildConnectionTypically a DesignerDataConnection object is returned as part of the Connections property, and is created either by reading the application's configuration file or by calling the BuildConnection method.

构造函数

DesignerDataConnection(String, String, String)

使用指定的名称、数据提供程序和连接字符串初始化 DesignerDataConnection 类的新实例。Initializes a new instance of the DesignerDataConnection class with the specified name, data provider, and connection string.

DesignerDataConnection(String, String, String, Boolean)

用指定的名称、数据提供程序和连接字符串,并指示连接是否是从配置文件加载的,初始化 DesignerDataConnection 类的新实例。Initializes a new instance of the DesignerDataConnection class with the specified name, data provider, and connection string, and indicates whether the connection was loaded from a configuration file.

属性

ConnectionString

获取为连接定义的应用程序连接字符串。Gets the application connection string defined for the connection.

IsConfigured

获取一个值,该值指示连接信息是否在应用程序的配置文件中。Gets a value indicating whether the connection information is in the application's configuration file.

Name

获取数据连接的名称。Gets the name of the data connection.

ProviderName

获取用于访问基础数据存储区的提供程序的名称。Gets the name of the provider used to access the underlying data store.

方法

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于