语言

DataBus 类

定义

表示DataBus类。

public ref class DataBus : IDisposable, Microsoft::SqlServer::Management::Data::IDataBus, Microsoft::SqlServer::Management::Sdk::Sfc::ISfcPropertyProvider, Microsoft::SqlServer::Management::Sdk::Sfc::ISfcPropertySet, System::Collections::ICollection, System::ComponentModel::ICustomTypeDescriptor, System::ComponentModel::INotifyPropertyChanged
public class DataBus : IDisposable, Microsoft.SqlServer.Management.Data.IDataBus, Microsoft.SqlServer.Management.Sdk.Sfc.ISfcPropertyProvider, Microsoft.SqlServer.Management.Sdk.Sfc.ISfcPropertySet, System.Collections.ICollection, System.ComponentModel.ICustomTypeDescriptor, System.ComponentModel.INotifyPropertyChanged
type DataBus = class
    interface IDataBus
    interface ISfcPropertySet
    interface ISfcPropertyProvider
    interface ISfcNotifyPropertyMetadataChanged
    interface INotifyPropertyChanged
    interface ICollection
    interface IEnumerable
    interface IDisposable
    interface ICustomTypeDescriptor
Public Class DataBus
Implements ICollection, ICustomTypeDescriptor, IDataBus, IDisposable, INotifyPropertyChanged, ISfcPropertyProvider, ISfcPropertySet
继承
DataBus
实现

构造函数

名称 说明
DataBus()

初始化 DataBus 类的新实例。

属性

名称 说明
Count

获取数据总线中的数据数量。

IsSynchronized

获得一个值,表示DataBus控制中的数据是否同步。

Item[String]

在DataBus控件中获取或设置属性值。

SyncRoot

获得一个对象,可用于将数据同步到DataBus控件。

方法

名称 说明
Add(ISfcProperty, ISfcPropertyProvider)

添加属性元数据、值和属性提供者。 此类不能被继承。

Add(ISfcProperty)

向集合添加带有指定元数据和值的属性。 此类不能被继承。

Add(ISfcPropertyProvider)

添加供应商的所有属性。 此类不能被继承。

Add(String, ISfcPropertyProvider)

添加一个指定名称和属性提供者的财产。 此类不能被继承。

Add<T>(String, T, Boolean)

添加一个指定名称和类型的属性。 此类不能被继承。

Add<T>(String, T)

添加一个指定名称和类型的属性。 此类不能被继承。

Contains(ISfcProperty)

检查是否存在带有指定元数据和值的属性。 此类不能被继承。

Contains(String)

检查指定名称的物业是否存在。 此类不能被继承。

Contains<T>(String)

表示是否存在指定名称的财产。

CopyTo(Array, Int32)

将DataBus控件的项复制到一维数组,从给定的数组索引开始。

Dispose()

释放类使用 DataBus 的所有资源。

Dispose(Boolean)

释放由托管资源使用 DataBus 的非托管资源,并选择性地释放托管资源。

EnumProperties()

规定所有属性。

GetAttributes()

表示从DataBus控制中收集数据的属性。

GetClassName()

返回DataBus控件的类名称。

GetComponentName()

返回DataBus控件组件的名称。

GetConverter()

返回DataBus控制的类型转换器。

GetDefaultEvent()

返回DataBus控件的默认事件。

GetDefaultProperty()

返回DataBus控件的默认属性。

GetEditor(Type)

获取DataBus控件编辑器的类型。

GetEnumerator()

返回 IEnumerator DataBus控件的接口。

GetEvents()

返回DataBus控制的事件。

GetEvents(Attribute[])

返回 DataBus 控制的过滤事件描述符集合。

GetProperties()

返回 DataBus 控制的属性描述符集合。

GetProperties(Attribute[])

通过属性数组作为过滤器返回DataBus控件的属性。

GetPropertyOwner(PropertyDescriptor)

返回一个对象,该对象包含指定属性描述符描述符描述的属性。

GetPropertySet()

检索数据总线的属性集合。

Remove(ISfcProperty)

从集合中移除包含指定元数据和值的属性。

Remove(ISfcPropertyProvider)

移除所有属性的指定提供者。

Remove(String, ISfcPropertyProvider)

将该属性指定的提供者从数据总线控制中移除。

Remove(String)

移除数据总线属性的指定名称。

TryGetProperty(String, ISfcProperty)

获得与指定键关联的属性。

TryGetPropertyValue(String, Object)

尝试获得指定名称和价值的房产价值。

TryGetPropertyValue<T>(String, T)

尝试获得指定名称和类型的属性值。

活动

名称 说明
PropertyChanged

当DataBus控制的属性值发生变化时。

PropertyMetadataChanged

当DataBus控制的元数据属性值发生变化时。

适用于