DependencyProperty.Register Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates new instances of the DependencyProperty possessing specific initialization conditions.
Overloads
| Name | Description |
|---|---|
| Register(String, Type, Type) |
Initializes a new instance of the DependencyProperty class that has the properties parameterized according to the input parameters. |
| Register(String, Type, Type, PropertyMetadata) |
Initializes a new instance of the DependencyProperty class that has the properties parameterized according to the input parameters. |
Register(String, Type, 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 ^ Register(System::String ^ name, Type ^ propertyType, Type ^ ownerType);
public static System.Workflow.ComponentModel.DependencyProperty Register(string name, Type propertyType, Type ownerType);
static member Register : string * Type * Type -> System.Workflow.ComponentModel.DependencyProperty
Public Shared Function Register (name As String, propertyType As Type, ownerType As Type) As DependencyProperty
Parameters
- name
- String
The name of the DependencyProperty.
Returns
The DependencyProperty class that has the properties parameterized according to the input parameters.
Applies to
Register(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 ^ Register(System::String ^ name, Type ^ propertyType, Type ^ ownerType, System::Workflow::ComponentModel::PropertyMetadata ^ defaultMetadata);
public static System.Workflow.ComponentModel.DependencyProperty Register(string name, Type propertyType, Type ownerType, System.Workflow.ComponentModel.PropertyMetadata defaultMetadata);
static member Register : string * Type * Type * System.Workflow.ComponentModel.PropertyMetadata -> System.Workflow.ComponentModel.DependencyProperty
Public Shared Function Register (name As String, propertyType As Type, ownerType As Type, defaultMetadata As PropertyMetadata) As DependencyProperty
Parameters
- name
- String
The name of the DependencyProperty.
- defaultMetadata
- PropertyMetadata
Additional property options.
Returns
The DependencyProperty class that has the properties parameterized according to the input parameters.