DependencyProperty.RegisterAttached 方法

定义

初始化类的新实例,该实例 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

DependencyProperty的名称。

propertyType
Type

属性可以包含的值的

ownerType
Type

依赖属性的所有者 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

DependencyProperty的名称。

propertyType
Type

属性可以包含的值的

ownerType
Type

依赖属性的所有者 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

DependencyProperty的名称。

propertyType
Type

属性可以包含的值的

ownerType
Type

依赖属性的所有者 Type

defaultMetadata
PropertyMetadata

其他属性选项。

validatorType
Type

Type 对象的 对象,用于实现附加属性的验证逻辑。

返回

根据 DependencyProperty 输入参数参数化属性的类。

适用于