Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

PropertyManager Class

Maintains a Binding between an object's property and a data-bound control property.

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)
public class PropertyManager : BindingManagerBase

The PropertyManager type exposes the following members.

  NameDescription
Public methodPropertyManagerInitializes a new instance of the PropertyManager class.
Top
  NameDescription
Public propertyBindingsGets the collection of bindings being managed. (Inherited from BindingManagerBase.)
Public propertyCountWhen overridden in a derived class, gets the number of rows managed by the BindingManagerBase. (Overrides BindingManagerBase.Count.)
Public propertyCurrentGets the object to which the data-bound property belongs. (Overrides BindingManagerBase.Current.)
Public propertyIsBindingSuspendedGets a value indicating whether binding is suspended. (Inherited from BindingManagerBase.)
Public propertyPositionWhen overridden in a derived class, gets or sets the position in the underlying list that controls bound to this data source point to. (Overrides BindingManagerBase.Position.)
Top
  NameDescription
Public methodAddNewWhen overridden in a derived class, adds a new item to the underlying list. (Overrides BindingManagerBase.AddNew().)
Public methodCancelCurrentEditWhen overridden in a derived class, cancels the current edit. (Overrides BindingManagerBase.CancelCurrentEdit().)
Public methodEndCurrentEditWhen overridden in a derived class, ends the current edit. (Overrides BindingManagerBase.EndCurrentEdit().)
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetItemProperties()When overridden in a derived class, gets the collection of property descriptors for the binding. (Inherited from BindingManagerBase.)
Protected methodGetItemProperties(ArrayList, ArrayList)Gets the collection of property descriptors for the binding using the specified ArrayList. (Inherited from BindingManagerBase.)
Protected methodGetItemProperties(Type, Int32, ArrayList, ArrayList)Gets the list of properties of the items managed by this BindingManagerBase. (Inherited from BindingManagerBase.)
Protected methodGetListNameWhen overridden in a derived class, gets the name of the list supplying the data for the binding. (Overrides BindingManagerBase.GetListName(ArrayList).)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodOnBindingCompleteRaises the BindingComplete event. (Inherited from BindingManagerBase.)
Protected methodOnCurrentChangedRaises the CurrentChanged event. (Overrides BindingManagerBase.OnCurrentChanged(EventArgs).)
Protected methodOnCurrentItemChangedRaises the CurrentItemChanged event. (Overrides BindingManagerBase.OnCurrentItemChanged(EventArgs).)
Protected methodOnDataErrorRaises the DataError event. (Inherited from BindingManagerBase.)
Protected methodPullDataPulls data from the data-bound control into the data source, returning no information. (Inherited from BindingManagerBase.)
Protected methodPushDataPushes data from the data source into the data-bound control, returning no information. (Inherited from BindingManagerBase.)
Public methodRemoveAtWhen overridden in a derived class, deletes the row at the specified index from the underlying list. (Overrides BindingManagerBase.RemoveAt(Int32).)
Public methodResumeBindingWhen overridden in a derived class, resumes data binding. (Overrides BindingManagerBase.ResumeBinding().)
Public methodSuspendBindingSuspends the data binding between a data source and a data-bound property. (Overrides BindingManagerBase.SuspendBinding().)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Protected methodUpdateIsBindingUpdates the current Binding between a data binding and a data-bound property. (Overrides BindingManagerBase.UpdateIsBinding().)
Top
  NameDescription
Public eventBindingCompleteOccurs at the completion of a data-binding operation. (Inherited from BindingManagerBase.)
Public eventCurrentChangedOccurs when the currently bound item changes. (Inherited from BindingManagerBase.)
Public eventCurrentItemChangedOccurs when the state of the currently bound item changes. (Inherited from BindingManagerBase.)
Public eventDataErrorOccurs when an Exception is silently handled by the BindingManagerBase. (Inherited from BindingManagerBase.)
Public eventPositionChangedOccurs after the value of the Position property has changed. (Inherited from BindingManagerBase.)
Top
  NameDescription
Protected fieldonCurrentChangedHandlerSpecifies the event handler for the CurrentChanged event. (Inherited from BindingManagerBase.)
Protected fieldonPositionChangedHandlerSpecifies the event handler for the PositionChanged event. (Inherited from BindingManagerBase.)
Top

The PropertyManager inherits from the BindingManagerBase, and it is used to maintain the current property of an object, rather than the property of a current object in a list. For this reason, trying to set the Position or Count property for a PropertyManager has no effect. Similarly, the AddNew and RemoveAt methods are not supported because there is no underlying list of data to add to or delete from. In addition, a call to IsBindingSuspended will always return false if the PropertyManager has a data source, regardless of whether SuspendBinding has been called.

.NET Framework

Supported in: 4.5.1, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.