A special kind of property that can be defined or attached to a DependencyObject. There are three kinds of dependency properties: instance properties, meta properties, and attached properties. This class cannot be inherited.
Assembly: System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)
Thetype exposes the following members.
|DefaultMetadata||Gets the PropertyMetadata that represents user-defined data for this .|
|IsAttached||Gets the property that indicates whether this is associated to a DependencyObject by registration.|
|IsEvent||Gets the property that indicates whether the is an event Delegate.|
|Name||Gets the Name of the .|
|OwnerType||Gets the Type of the .|
|PropertyType||Gets the Type of the value stored in the .|
|ValidatorType||Gets the Type implementing validation logic specific to the .|
|Equals(Object)||Determines whether the specified Object is equal to the current Object. (Inherited from Object.)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|FromName||Gets the registered based on the Name and OwnerType.|
|FromType||Creates an IList of type that belong to a specific Type.|
|GetHashCode||Returns the hash code for this instance. (Overrides Object::GetHashCode().)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|Register(String, Type, Type)||Initializes a new instance of the class that has the properties parameterized according to the input parameters.|
|Register(String, Type, Type, PropertyMetadata)||Initializes a new instance of the class that has the properties parameterized according to the input parameters.|
|RegisterAttached(String, Type, Type)||Initializes a new instance of the class that has the properties parameterized according to the input parameters. This instance is intended to declare properties that are used on objects other than the objects of owning type.|
|RegisterAttached(String, Type, Type, PropertyMetadata)||Initializes a new instance of the class that has the properties parameterized according to the input parameters.|
|RegisterAttached(String, Type, Type, PropertyMetadata, Type)|
|ToString||Overrides the Object method to return the Name property value. (Overrides Object::ToString().)|
Dependency properties support three use cases. First, if an instance property of an activity is implemented by using a dependency property, that property can be assigned an ActivityBind instead of an actual value. Second, activity properties that are metadata (that is, the value cannot change at run time) should be implemented by using dependency properties, specifying the Metadata option. Third, dependency properties support attached properties, which are properties that are applied to dependency objects dynamically.
The following example shows how to register a for use by a DependencyObject. This code example is part of the Send E-mail SDK sample and is from the SendMailActivity.cs file. For more information, see Send Mail Activity.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2