DependencyProperty.RegisterAttached 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化类的新实例,该实例 DependencyProperty 具有根据输入参数参数化的属性。
重载
| 名称 | 说明 |
|---|---|
| RegisterAttached(String, Type, Type) |
初始化类的新实例,该实例 DependencyProperty 具有根据输入参数参数化的属性。 此实例旨在声明在拥有类型对象以外的对象上使用的属性。 |
| RegisterAttached(String, Type, Type, PropertyMetadata) |
初始化类的新实例,该实例 DependencyProperty 具有根据输入参数参数化的属性。 |
| RegisterAttached(String, Type, Type, PropertyMetadata, Type) |
初始化类的新实例,该实例 DependencyProperty 具有根据输入参数参数化的属性。 |
RegisterAttached(String, Type, Type)
初始化类的新实例,该实例 DependencyProperty 具有根据输入参数参数化的属性。 此实例旨在声明在拥有类型对象以外的对象上使用的属性。
public:
static System::Workflow::ComponentModel::DependencyProperty ^ RegisterAttached(System::String ^ name, Type ^ propertyType, Type ^ ownerType);
public static System.Workflow.ComponentModel.DependencyProperty RegisterAttached(string name, Type propertyType, Type ownerType);
static member RegisterAttached : string * Type * Type -> System.Workflow.ComponentModel.DependencyProperty
Public Shared Function RegisterAttached (name As String, propertyType As Type, ownerType As Type) As DependencyProperty
参数
- name
- String
- propertyType
- Type
返回
根据 DependencyProperty 输入参数参数化属性的类。
适用于
RegisterAttached(String, Type, Type, PropertyMetadata)
初始化类的新实例,该实例 DependencyProperty 具有根据输入参数参数化的属性。
public:
static System::Workflow::ComponentModel::DependencyProperty ^ RegisterAttached(System::String ^ name, Type ^ propertyType, Type ^ ownerType, System::Workflow::ComponentModel::PropertyMetadata ^ defaultMetadata);
public static System.Workflow.ComponentModel.DependencyProperty RegisterAttached(string name, Type propertyType, Type ownerType, System.Workflow.ComponentModel.PropertyMetadata defaultMetadata);
static member RegisterAttached : string * Type * Type * System.Workflow.ComponentModel.PropertyMetadata -> System.Workflow.ComponentModel.DependencyProperty
Public Shared Function RegisterAttached (name As String, propertyType As Type, ownerType As Type, defaultMetadata As PropertyMetadata) As DependencyProperty
参数
- name
- String
- propertyType
- Type
- defaultMetadata
- PropertyMetadata
其他属性选项。
返回
根据 DependencyProperty 输入参数参数化属性的类。
适用于
RegisterAttached(String, Type, Type, PropertyMetadata, Type)
初始化类的新实例,该实例 DependencyProperty 具有根据输入参数参数化的属性。
public:
static System::Workflow::ComponentModel::DependencyProperty ^ RegisterAttached(System::String ^ name, Type ^ propertyType, Type ^ ownerType, System::Workflow::ComponentModel::PropertyMetadata ^ defaultMetadata, Type ^ validatorType);
public static System.Workflow.ComponentModel.DependencyProperty RegisterAttached(string name, Type propertyType, Type ownerType, System.Workflow.ComponentModel.PropertyMetadata defaultMetadata, Type validatorType);
static member RegisterAttached : string * Type * Type * System.Workflow.ComponentModel.PropertyMetadata * Type -> System.Workflow.ComponentModel.DependencyProperty
Public Shared Function RegisterAttached (name As String, propertyType As Type, ownerType As Type, defaultMetadata As PropertyMetadata, validatorType As Type) As DependencyProperty
参数
- name
- String
- propertyType
- Type
- defaultMetadata
- PropertyMetadata
其他属性选项。
返回
根据 DependencyProperty 输入参数参数化属性的类。