ModelingBindingSource Class
A specialized BindingSource for use with VMSDK (DSL Tools) models. Creates a transaction when items are added or removed.
Inheritance Hierarchy
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
System.Windows.Forms.BindingSource
Microsoft.VisualStudio.Modeling.Design.ModelingBindingSource
Namespace: Microsoft.VisualStudio.Modeling.Design
Assembly: Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
Syntax
'Declaration
Public Class ModelingBindingSource _
Inherits BindingSource
public class ModelingBindingSource : BindingSource
public ref class ModelingBindingSource : public BindingSource
type ModelingBindingSource =
class
inherit BindingSource
end
public class ModelingBindingSource extends BindingSource
The ModelingBindingSource type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ModelingBindingSource() | Initializes a new instance of the Microsoft.VisualStudio.Modeling.Design.ModelingBindingSource class to the default property values. | |
ModelingBindingSource(IContainer) | Initializes a new instance of the Microsoft.VisualStudio.Modeling.Design.ModelingBindingSource class and adds newly created ModelingBindingSource object to the specified container. | |
ModelingBindingSource(Object, String) | Initializes a new instance of the Microsoft.VisualStudio.Modeling.Design.ModelingBindingSource class with the specified data source and data member. |
Top
Properties
Name | Description | |
---|---|---|
AllowEdit | Gets a value indicating whether items in the underlying list can be edited. (Inherited from BindingSource.) | |
AllowNew | Is AddNew allowed to be called on this source. (Overrides BindingSource.AllowNew.) | |
AllowRemove | Gets a value indicating whether items can be removed from the underlying list. (Inherited from BindingSource.) | |
CanRaiseEvents | Gets a value indicating whether the component can raise an event. (Inherited from Component.) | |
Container | Gets the IContainer that contains the Component. (Inherited from Component.) | |
Count | Gets the total number of items in the underlying list, taking the current Filter value into consideration. (Inherited from BindingSource.) | |
CurrencyManager | Gets the currency manager associated with this BindingSource. (Inherited from BindingSource.) | |
Current | Gets the current item in the list. (Inherited from BindingSource.) | |
DataMember | Gets or sets the specific list in the data source to which the connector currently binds to. (Inherited from BindingSource.) | |
DataSource | Gets or sets the data source that the connector binds to. (Inherited from BindingSource.) | |
DesignMode | Gets a value that indicates whether the Component is currently in design mode. (Inherited from Component.) | |
Events | Gets the list of event handlers that are attached to this Component. (Inherited from Component.) | |
Filter | Gets or sets the expression used to filter which rows are viewed. (Inherited from BindingSource.) | |
IsBindingSuspended | Gets a value indicating whether the list binding is suspended. (Inherited from BindingSource.) | |
IsFixedSize | Gets a value indicating whether the underlying list has a fixed size. (Inherited from BindingSource.) | |
IsReadOnly | Gets a value indicating whether the underlying list is read-only. (Inherited from BindingSource.) | |
IsSorted | Gets a value indicating whether the items in the underlying list are sorted. (Inherited from BindingSource.) | |
IsSynchronized | Gets a value indicating whether access to the collection is synchronized (thread safe). (Inherited from BindingSource.) | |
IsValidDataSource | True if the data source is a VMSDK ModelElement that is contained in a VMSDK Store. | |
Item | Gets or sets the list item at the specified index. If you set an item, the operation will be performed inside a transaction. (Overrides BindingSource.Item.) | |
List | Gets the list that the connector is bound to. (Inherited from BindingSource.) | |
Position | Gets or sets the index of the current item in the underlying list. (Inherited from BindingSource.) | |
RaiseListChangedEvents | Gets or sets a value indicating whether ListChanged events should be raised. (Inherited from BindingSource.) | |
Site | Gets or sets the ISite of the Component. (Inherited from Component.) | |
Sort | Gets or sets the column names used for sorting, and the sort order for viewing the rows in the data source. (Inherited from BindingSource.) | |
SortDescriptions | Gets the collection of sort descriptions applied to the data source. (Inherited from BindingSource.) | |
SortDirection | Gets the direction the items in the list are sorted. (Inherited from BindingSource.) | |
SortProperty | Infrastructure. Gets the PropertyDescriptor that is being used for sorting the list. (Inherited from BindingSource.) | |
SupportsAdvancedSorting | Gets a value indicating whether the data source supports multi-column sorting. (Inherited from BindingSource.) | |
SupportsChangeNotification | Gets a value indicating whether the data source supports change notification. (Inherited from BindingSource.) | |
SupportsFiltering | Gets a value indicating whether the data source supports filtering. (Inherited from BindingSource.) | |
SupportsSearching | Gets a value indicating whether the data source supports searching with the Find method. (Inherited from BindingSource.) | |
SupportsSorting | Gets a value indicating whether the data source supports sorting. (Inherited from BindingSource.) | |
SyncRoot | Gets an object that can be used to synchronize access to the underlying list. (Inherited from BindingSource.) |
Top
Methods
Name | Description | |
---|---|---|
Add | Adds an existing item to the list. The operation will be performed inside a transaction. (Overrides BindingSource.Add(Object).) | |
AddNew | Adds a new item to the underlying list. (Overrides BindingSource.AddNew().) | |
ApplySort(ListSortDescriptionCollection) | Sorts the data source with the specified sort descriptions. (Inherited from BindingSource.) | |
ApplySort(PropertyDescriptor, ListSortDirection) | Sorts the data source using the specified property descriptor and sort direction. (Inherited from BindingSource.) | |
CancelEdit | Cancels the current edit operation. (Inherited from BindingSource.) | |
Clear | Removes all elements from the list. Performs the operation inside a transaction. (Overrides BindingSource.Clear().) | |
Contains | Determines whether an object is an item in the list. (Inherited from BindingSource.) | |
CopyTo | Copies the contents of the List to the specified array, starting at the specified index value. (Inherited from BindingSource.) | |
CreateObjRef | Security Critical. Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) | |
Dispose() | Releases all resources used by the Component. (Inherited from Component.) | |
Dispose(Boolean) | Releases the unmanaged resources used by the BindingSource and optionally releases the managed resources. (Inherited from BindingSource.) | |
EndEdit | Applies pending changes to the underlying data source. (Inherited from BindingSource.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (Inherited from Component.) | |
Find(String, Object) | Returns the index of the item in the list with the specified property name and value. (Inherited from BindingSource.) | |
Find(PropertyDescriptor, Object) | Searches for the index of the item that has the given property descriptor. (Inherited from BindingSource.) | |
GetEnumerator | Retrieves an enumerator for the List. (Inherited from BindingSource.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetItemProperties | Retrieves an array of PropertyDescriptor objects representing the bindable properties of the data source list type. (Inherited from BindingSource.) | |
GetLifetimeService | Security Critical. Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
GetListName | Gets the name of the list supplying data for the binding. (Inherited from BindingSource.) | |
GetRelatedCurrencyManager | Gets the related currency manager for the specified data member. (Inherited from BindingSource.) | |
GetService | Returns an object that represents a service provided by the Component or by its Container. (Inherited from Component.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IndexOf | Searches for the specified object and returns the index of the first occurrence within the entire list. (Inherited from BindingSource.) | |
InitializeLifetimeService | Security Critical. Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
Insert | Inserts an item into the list at the specified index. Performs the operation inside a transaction. (Overrides BindingSource.Insert(Int32, Object).) | |
MemberwiseClone() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.) | |
MoveFirst | Moves to the first item in the list. (Inherited from BindingSource.) | |
MoveLast | Moves to the last item in the list. (Inherited from BindingSource.) | |
MoveNext | Moves to the next item in the list. (Inherited from BindingSource.) | |
MovePrevious | Moves to the previous item in the list. (Inherited from BindingSource.) | |
OnAddingNew | Raises the AddingNew event. (Inherited from BindingSource.) | |
OnBindingComplete | Raises the BindingComplete event. (Inherited from BindingSource.) | |
OnCurrentChanged | Raises the CurrentChanged event. (Inherited from BindingSource.) | |
OnCurrentItemChanged | Raises the CurrentItemChanged event. (Inherited from BindingSource.) | |
OnDataError | Raises the DataError event. (Inherited from BindingSource.) | |
OnDataMemberChanged | Raises the DataMemberChanged event. (Inherited from BindingSource.) | |
OnDataSourceChanged | Raises the DataSourceChanged event. (Inherited from BindingSource.) | |
OnListChanged | When the list has been changed this method is called in order to reset the store event handlers and reset the state of a valid datasource. (Overrides BindingSource.OnListChanged(ListChangedEventArgs).) | |
OnPositionChanged | Raises the PositionChanged event. (Inherited from BindingSource.) | |
OnPropertyChanged | Called when a property has changed. | |
Remove | Removes the specified item from the list. Performs the operation inside a transaction. (Overrides BindingSource.Remove(Object).) | |
RemoveAt | Removes the item at the specified index in the list. Performs the operation inside a transaction. (Overrides BindingSource.RemoveAt(Int32).) | |
RemoveCurrent | Removes the current item from the list. (Inherited from BindingSource.) | |
RemoveFilter | Removes the filter associated with the BindingSource. (Inherited from BindingSource.) | |
RemoveSort | Removes the sort associated with the BindingSource. (Inherited from BindingSource.) | |
ResetAllowNew | Infrastructure. Reinitializes the AllowNew property. (Inherited from BindingSource.) | |
ResetBindings | Causes a control bound to the BindingSource to reread all the items in the list and refresh their displayed values. (Inherited from BindingSource.) | |
ResetCurrentItem | Causes a control bound to the BindingSource to reread the currently selected item and refresh its displayed value. (Inherited from BindingSource.) | |
ResetItem | Causes a control bound to the BindingSource to reread the item at the specified index, and refresh its displayed value. (Inherited from BindingSource.) | |
ResumeBinding | Resumes data binding. (Inherited from BindingSource.) | |
SuspendBinding | Suspends data binding to prevent changes from updating the bound data source. (Inherited from BindingSource.) | |
ToString | Returns a String containing the name of the Component, if any. This method should not be overridden. (Inherited from Component.) |
Top
Events
Name | Description | |
---|---|---|
AddingNew | Occurs before an item is added to the underlying list. (Inherited from BindingSource.) | |
BindingComplete | Occurs when all the clients have been bound to this BindingSource. (Inherited from BindingSource.) | |
CurrentChanged | Occurs when the currently bound item changes. (Inherited from BindingSource.) | |
CurrentItemChanged | Occurs when a property value of the Current property has changed. (Inherited from BindingSource.) | |
DataError | Occurs when a currency-related exception is silently handled by the BindingSource. (Inherited from BindingSource.) | |
DataMemberChanged | Occurs when the DataMember property value has changed. (Inherited from BindingSource.) | |
DataSourceChanged | Occurs when the DataSource property value has changed. (Inherited from BindingSource.) | |
Disposed | Occurs when the component is disposed by a call to the Dispose method. (Inherited from Component.) | |
ListChanged | Occurs when the underlying list changes or an item in the list changes. (Inherited from BindingSource.) | |
PositionChanged | Occurs after the value of the Position property has changed. (Inherited from BindingSource.) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
IBindingList.AddIndex | Adds the PropertyDescriptor to the indexes used for searching. (Inherited from BindingSource.) | |
ISupportInitialize.BeginInit | Signals the BindingSource that initialization is starting. (Inherited from BindingSource.) | |
ICancelAddNew.CancelNew | Discards a pending new item from the collection. (Inherited from BindingSource.) | |
ISupportInitialize.EndInit | Signals the BindingSource that initialization is complete. (Inherited from BindingSource.) | |
ICancelAddNew.EndNew | Commits a pending new item to the collection. (Inherited from BindingSource.) | |
ISupportInitializeNotification.Initialized | Occurs when the BindingSource is initialized. (Inherited from BindingSource.) | |
ISupportInitializeNotification.IsInitialized | Gets a value indicating whether the BindingSource is initialized. (Inherited from BindingSource.) | |
IBindingList.RemoveIndex | Removes the System.ComponentModel.PropertyDescriptor from the indexes used for searching. (Inherited from BindingSource.) |
Top
Remarks
For an example of how to use this binding source, see Creating a Windows Forms-Based Domain-Specific Language.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.