DependencyProperty.RegisterAttached Method

Definition

Initializes a new instance of the DependencyProperty class that has the properties parameterized according to the input parameters.

Overloads

RegisterAttached(String, Type, Type)

Initializes a new instance of the DependencyProperty 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 DependencyProperty class that has the properties parameterized according to the input parameters.

RegisterAttached(String, Type, Type, PropertyMetadata, Type)

Initializes a new instance of the DependencyProperty class that has the properties parameterized according to the input parameters.

RegisterAttached(String, Type, Type)

Initializes a new instance of the DependencyProperty 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.

public static System.Workflow.ComponentModel.DependencyProperty RegisterAttached(string name, Type propertyType, Type ownerType);

Parameters

name
String

The name of the DependencyProperty.

propertyType
Type

Type of the value the property can contain.

ownerType
Type

Owner Type of the dependency property.

Returns

The DependencyProperty class that has the properties parameterized according to the input parameters.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

RegisterAttached(String, Type, Type, PropertyMetadata)

Initializes a new instance of the DependencyProperty class that has the properties parameterized according to the input parameters.

public static System.Workflow.ComponentModel.DependencyProperty RegisterAttached(string name, Type propertyType, Type ownerType, System.Workflow.ComponentModel.PropertyMetadata defaultMetadata);

Parameters

name
String

The name of the DependencyProperty.

propertyType
Type

Type of the value the property can contain.

ownerType
Type

Owner Type of the dependency property.

defaultMetadata
PropertyMetadata

Additional property options.

Returns

The DependencyProperty class that has the properties parameterized according to the input parameters.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

RegisterAttached(String, Type, Type, PropertyMetadata, Type)

Initializes a new instance of the DependencyProperty class that has the properties parameterized according to the input parameters.

public static System.Workflow.ComponentModel.DependencyProperty RegisterAttached(string name, Type propertyType, Type ownerType, System.Workflow.ComponentModel.PropertyMetadata defaultMetadata, Type validatorType);

Parameters

name
String

The name of the DependencyProperty.

propertyType
Type

Type of the value the property can contain.

ownerType
Type

Owner Type of the dependency property.

defaultMetadata
PropertyMetadata

Additional property options.

validatorType
Type

Type of object that implements validation logic for the attached property.

Returns

The DependencyProperty class that has the properties parameterized according to the input parameters.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1