提供有关 ADO.NET 数据源的信息以作为名称/值传递的属性对的形式。
继承层次结构
System.Object
Microsoft.VisualStudio.Data.ObjectWithSite
Microsoft.VisualStudio.Data.DataSourceInformation
Microsoft.VisualStudio.Data.AdoDotNet.AdoDotNetDataSourceInformation
命名空间: Microsoft.VisualStudio.Data.AdoDotNet
程序集: Microsoft.VisualStudio.Data(在 Microsoft.VisualStudio.Data.dll 中)
语法
声明
Public Class AdoDotNetDataSourceInformation _
Inherits DataSourceInformation
public class AdoDotNetDataSourceInformation : DataSourceInformation
public ref class AdoDotNetDataSourceInformation : public DataSourceInformation
type AdoDotNetDataSourceInformation =
class
inherit DataSourceInformation
end
public class AdoDotNetDataSourceInformation extends DataSourceInformation
AdoDotNetDataSourceInformation 类型公开以下成员。
构造函数
名称 | 说明 | |
---|---|---|
![]() |
AdoDotNetDataSourceInformation(DataConnection) | 选件类构造函数。初始化 AdoDotNetDataSourceInformation 选件类的实例。DataConnection 对象的。 |
![]() |
AdoDotNetDataSourceInformation(DataConnection, ICollection) | 选件类构造函数。初始化 AdoDotNetDataSourceInformation 选件类和连接属性的集合的实例。DataConnection 对象的。 |
![]() |
AdoDotNetDataSourceInformation(DataConnection, IDictionary) | 选件类构造函数。初始化 AdoDotNetDataSourceInformation 选件类的实例。DataConnection 对象和连接属性 IDictionary 对象的。 |
页首
属性
名称 | 说明 | |
---|---|---|
![]() |
Connection | 检索用于的数据连接检索数据源属性。 (继承自 DataSourceInformation。) |
![]() |
ConnectionSupport | 检索连接支持对象与数据连接的提供程序。 (继承自 DataSourceInformation。) |
![]() |
DataSourceInformation | 检索内存 DataTable 选件类的实现提供数据源的信息表示内存中的数据表。 |
![]() |
Item | 检索具有指定名称的一个数据源属性的相关信息。 (重写 DataSourceInformation.Item。) |
![]() |
ProviderObject | 检索基础提供程序连接对象所示)连接支持对象。 (继承自 DataSourceInformation。) |
![]() |
Site | 检索或设置对象站点。 (继承自 ObjectWithSite。) |
页首
方法
名称 | 说明 | |
---|---|---|
![]() |
AddProperty(String) | 将属性添加到支持的属性列表。 (继承自 DataSourceInformation。) |
![]() |
AddProperty(String, Object) | 添加属性并将其值设置为支持的属性列表。 (继承自 DataSourceInformation。) |
![]() |
Contains | 检索指示指定的属性是否的布尔值此数据源信息实例包含。 (重写 DataSourceInformation.Contains(String)。) |
![]() |
Equals | 确定指定的对象是否等于当前对象。 (继承自 Object。) |
![]() |
Finalize | 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。) |
![]() |
GetHashCode | 用作特定类型的哈希函数。 (继承自 Object。) |
![]() |
GetType | 获取当前实例的 Type。 (继承自 Object。) |
![]() |
MemberwiseClone | 创建当前 Object 的浅表副本。 (继承自 Object。) |
![]() |
OnSiteChanged | 引发 SiteChanged 事件。 (继承自 ObjectWithSite。) |
![]() |
RetrieveValue | 检索一个指定数据源的信息属性的值。 (重写 DataSourceInformation.RetrieveValue(String)。) |
![]() |
ToString | 返回表示当前对象的字符串。 (继承自 Object。) |
页首
事件
名称 | 说明 | |
---|---|---|
![]() |
SiteChanged | 引发的事件,请更改 Site 属性。 (继承自 ObjectWithSite。) |
页首
显式接口实现
名称 | 说明 | |
---|---|---|
![]() ![]() |
IObjectWithSite.GetSite | 检索使用 IObjectWithSite.SetSite 方法设置的最后一个站点。在没有已知的站点情况下,对象返回异常。 (继承自 ObjectWithSite。) |
![]() ![]() |
IObjectWithSite.SetSite | 提供网站的指针对站点对象。 (继承自 ObjectWithSite。) |
页首
备注
以下支持数据源的信息属性的列表:
属性 |
说明 |
---|---|
DataSource 属性的值。 |
|
DataSourceProductName 列的值。ADO.NET 数据源信息数据表中。 |
|
DataSourceProductVersion 列的值。ADO.NET 数据源信息数据表中。 |
|
默认为 false。 |
|
纯文本。 |
|
纯文本。 |
|
纯文本。 |
|
纯文本。 |
|
InOut 和 ReturnValue。 |
|
默认为 true。 |
|
Database的值,因此,如果非null和非空。 |
|
根据 ADO.NET 数据源信息的 SupportedJoinOperators 列的试探法;如果任何外部联接支持,true返回;否则返回 false。 |
|
true,如果 IdentifierCase 列的值。ADO.NET 数据源的信息包括 Sensitive; false,如果该值为 Insensitive; nullnull 引用(在 Visual Basic 中为 Nothing),如果。 |
|
true,如果 QuotedIdentifierCase 列的值。ADO.NET 数据源的信息包括 Sensitive; false,如果该值为 Insensitive; nullnull 引用(在 Visual Basic 中为 Nothing),如果。 |
|
调用带有 ReservedWords 的 GetSchema 方法并创建逗号分隔列表从每行的保留字在结果。 |
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。