DependencyProperty.RegisterAttached Metódus

Definíció

Inicializálja az DependencyProperty osztály új példányát, amely a bemeneti paramétereknek megfelelően paraméterezi a tulajdonságokat.

Túlterhelések

Name Description
RegisterAttached(String, Type, Type)

Inicializálja az DependencyProperty osztály új példányát, amely a bemeneti paramétereknek megfelelően paraméterezi a tulajdonságokat. Ez a példány a tulajdonosi típusú objektumoktól eltérő objektumokon használt tulajdonságok deklarálására szolgál.

RegisterAttached(String, Type, Type, PropertyMetadata)

Inicializálja az DependencyProperty osztály új példányát, amely a bemeneti paramétereknek megfelelően paraméterezi a tulajdonságokat.

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

Inicializálja az DependencyProperty osztály új példányát, amely a bemeneti paramétereknek megfelelően paraméterezi a tulajdonságokat.

RegisterAttached(String, Type, Type)

Inicializálja az DependencyProperty osztály új példányát, amely a bemeneti paramétereknek megfelelően paraméterezi a tulajdonságokat. Ez a példány a tulajdonosi típusú objektumoktól eltérő objektumokon használt tulajdonságok deklarálására szolgál.

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

Paraméterek

name
String

A DependencyProperty neve.

propertyType
Type

Type a tulajdonság által tartalmazhatott érték.

ownerType
Type

A függőségi tulajdonság tulajdonosa Type .

Válaszok

Az DependencyProperty az osztály, amely a bemeneti paramétereknek megfelelően paraméterezi a tulajdonságokat.

A következőre érvényes:

RegisterAttached(String, Type, Type, PropertyMetadata)

Inicializálja az DependencyProperty osztály új példányát, amely a bemeneti paramétereknek megfelelően paraméterezi a tulajdonságokat.

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

Paraméterek

name
String

A DependencyProperty neve.

propertyType
Type

Type a tulajdonság által tartalmazhatott érték.

ownerType
Type

A függőségi tulajdonság tulajdonosa Type .

defaultMetadata
PropertyMetadata

További tulajdonságbeállítások.

Válaszok

Az DependencyProperty az osztály, amely a bemeneti paramétereknek megfelelően paraméterezi a tulajdonságokat.

A következőre érvényes:

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

Inicializálja az DependencyProperty osztály új példányát, amely a bemeneti paramétereknek megfelelően paraméterezi a tulajdonságokat.

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

Paraméterek

name
String

A DependencyProperty neve.

propertyType
Type

Type a tulajdonság által tartalmazhatott érték.

ownerType
Type

A függőségi tulajdonság tulajdonosa Type .

defaultMetadata
PropertyMetadata

További tulajdonságbeállítások.

validatorType
Type

Type objektum, amely érvényesítési logikát implementál a csatolt tulajdonsághoz.

Válaszok

Az DependencyProperty az osztály, amely a bemeneti paramétereknek megfelelően paraméterezi a tulajdonságokat.

A következőre érvényes: