专用 BindingSource 用于 VMSDK (DSL 工具) 使用的模型。,向项目中添加或移除时,创建事务。
继承层次结构
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
System.Windows.Forms.BindingSource
Microsoft.VisualStudio.Modeling.Design.ModelingBindingSource
命名空间: Microsoft.VisualStudio.Modeling.Design
程序集: Microsoft.VisualStudio.Modeling.Sdk.11.0(在 Microsoft.VisualStudio.Modeling.Sdk.11.0.dll 中)
语法
声明
Public Class ModelingBindingSource _
Inherits BindingSource
public class ModelingBindingSource : BindingSource
ModelingBindingSource 类型公开以下成员。
构造函数
名称 | 说明 | |
---|---|---|
![]() |
ModelingBindingSource() | 初始化 Microsoft.VisualStudio.Modeling.Design.ModelingBindingSource 类的新实例添加到默认属性值。 |
![]() |
ModelingBindingSource(IContainer) | 初始化 Microsoft.VisualStudio.Modeling.Design.ModelingBindingSource 类的新实例并添加新创建的 ModelingBindingSource 对象到指定的容器。 |
![]() |
ModelingBindingSource(Object, String) | 初始化 Microsoft.VisualStudio.Modeling.Design.ModelingBindingSource 类的新实例使用指定的数据源和数据成员。 |
页首
属性
名称 | 说明 | |
---|---|---|
![]() |
AllowEdit | 获取指示基础中的项是否值列表进行编辑。 (继承自 BindingSource。) |
![]() |
AllowNew | 是允许的 AddNew 对该源。 (重写 BindingSource.AllowNew。) |
![]() |
AllowRemove | 获取指示项目是否的值可以从基础列表中移除。 (继承自 BindingSource。) |
![]() |
CanRaiseEvents | 获取一个指示组件是否可以引发事件的值。 (继承自 Component。) |
![]() |
Container | 获取 IContainer,它包含 Component。 (继承自 Component。) |
![]() |
Count | 获取项总数基础中的列表,请考虑到当前 Filter 值。 (继承自 BindingSource。) |
![]() |
CurrencyManager | 获取与关联的货币管理器此 BindingSource。 (继承自 BindingSource。) |
![]() |
Current | 获取列表中的当前项。 (继承自 BindingSource。) |
![]() |
DataMember | 在连接当前绑定的数据源获取或设置特定列表。 (继承自 BindingSource。) |
![]() |
DataSource | 获取或设置连接绑定的数据源。 (继承自 BindingSource。) |
![]() |
DesignMode | 获取一个值,用以指示 Component 当前是否处于设计模式。 (继承自 Component。) |
![]() |
Events | 获取附加到此 Component 的事件处理程序的列表。 (继承自 Component。) |
![]() |
Filter | 获取或设置用于的表达式筛选所查看行的。 (继承自 BindingSource。) |
![]() |
IsBindingSuspended | 获取一个列表绑定是否的值将被挂起。 (继承自 BindingSource。) |
![]() |
IsFixedSize | 获取指示是否基础值列表具有固定大小。 (继承自 BindingSource。) |
![]() |
IsReadOnly | 获取指示是否基础值列表是只读的。 (继承自 BindingSource。) |
![]() |
IsSorted | 获取指示基础中的项是否的值列表进行排序。 (继承自 BindingSource。) |
![]() |
IsSynchronized | 获取指示对集合的访问淡出同步 (线程安全)。 (继承自 BindingSource。) |
![]() |
IsValidDataSource | 则为 true; 如果数据源是在 VMSDK 存储中包含的 VMSDK ModelElement。 |
![]() |
Item | 获取或设置列表指定索引处的项。如果您安装项目,操作将对事务内。 (重写 BindingSource.Item。) |
![]() |
List | 获取列表连接绑定。 (继承自 BindingSource。) |
![]() |
Position | 获取或设置当前项目的索引基础中的列表。 (继承自 BindingSource。) |
![]() |
RaiseListChangedEvents | 获取或设置一个值应引发 ListChanged 事件。 (继承自 BindingSource。) |
![]() |
Site | 获取或设置 Component 的 ISite。 (继承自 Component。) |
![]() |
Sort | 获取或设置用于排序的列名和查看的行排序顺序在数据源。 (继承自 BindingSource。) |
![]() |
SortDescriptions | 获取集合排序声明中应用到该数据源。 (继承自 BindingSource。) |
![]() |
SortDirection | 获取列表中的项进行排序方向。 (继承自 BindingSource。) |
![]() |
SortProperty | 基础结构。获取用于排序列出了使用的 PropertyDescriptor 。 (继承自 BindingSource。) |
![]() |
SupportsAdvancedSorting | 获取一个数据源是否的值支持多列排序。 (继承自 BindingSource。) |
![]() |
SupportsChangeNotification | 获取一个数据源是否的值支持更改通知。 (继承自 BindingSource。) |
![]() |
SupportsFiltering | 获取一个数据源是否支持的值筛选。 (继承自 BindingSource。) |
![]() |
SupportsSearching | 获取一个数据源是否支持的值将搜索 Find 方法。 (继承自 BindingSource。) |
![]() |
SupportsSorting | 获取一个数据源是否支持排序的值。 (继承自 BindingSource。) |
![]() |
SyncRoot | 获取可用于同步对基础列表的访问权限的对象。 (继承自 BindingSource。) |
页首
方法
页首
事件
名称 | 说明 | |
---|---|---|
![]() |
AddingNew | ,在项目添加到基础列表之前,发生。 (继承自 BindingSource。) |
![]() |
BindingComplete | ,当所有客户端绑定到此 BindingSource,发生。 (继承自 BindingSource。) |
![]() |
CurrentChanged | ,这些事件在当前绑定项更改,发生。 (继承自 BindingSource。) |
![]() |
CurrentItemChanged | ,当 Current 属性的属性值已更改,发生。 (继承自 BindingSource。) |
![]() |
DataError | ,当一种货币相关的异常。 BindingSource,无提示地处理发生。 (继承自 BindingSource。) |
![]() |
DataMemberChanged | ,当 DataMember 属性值已更改,发生。 (继承自 BindingSource。) |
![]() |
DataSourceChanged | ,当 DataSource 属性值已更改,发生。 (继承自 BindingSource。) |
![]() |
Disposed | 当通过调用 Dispose 方法释放组件时发生。 (继承自 Component。) |
![]() |
ListChanged | 出现问题,则基础列表更改或列表中的项更改。 (继承自 BindingSource。) |
![]() |
PositionChanged | ,在 Position 属性的值更改后,发生。 (继承自 BindingSource。) |
页首
显式接口实现
名称 | 说明 | |
---|---|---|
![]() ![]() |
IBindingList.AddIndex | 添加 PropertyDescriptor 到用于搜索的索引。 (继承自 BindingSource。) |
![]() ![]() |
ISupportInitialize.BeginInit | 表示初始化开始的 BindingSource 。 (继承自 BindingSource。) |
![]() ![]() |
ICancelAddNew.CancelNew | 放弃从集合的挂起的新项。 (继承自 BindingSource。) |
![]() ![]() |
ISupportInitialize.EndInit | 信号 BindingSource 初始化完成的。 (继承自 BindingSource。) |
![]() ![]() |
ICancelAddNew.EndNew | 提交挂起的新项到集合。 (继承自 BindingSource。) |
![]() ![]() |
ISupportInitializeNotification.Initialized | ,当 BindingSource 初始化,发生。 (继承自 BindingSource。) |
![]() ![]() |
ISupportInitializeNotification.IsInitialized | 获取一个值,该值指示是否初始化 BindingSource。 (继承自 BindingSource。) |
![]() ![]() |
IBindingList.RemoveIndex | 从用于搜索的索引移除 System.ComponentModel.PropertyDescriptor 。 (继承自 BindingSource。) |
页首
备注
有关的示例演示如何使用此绑定源,请参见 创建基于 Windows 窗体的域特定语言。
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。