IMemberCreationService.CreateProperty Méthode

Définition

Crée une propriété sur la classe spécifiée à l’aide du nom de propriété, du type de propriété et des attributs spécifiés.

public:
 void CreateProperty(System::String ^ className, System::String ^ propertyName, Type ^ propertyType, cli::array <System::Workflow::ComponentModel::Compiler::AttributeInfo ^> ^ attributes, bool emitDependencyProperty, bool isMetaProperty, bool isAttached, Type ^ ownerType, bool isReadOnly);
public void CreateProperty(string className, string propertyName, Type propertyType, System.Workflow.ComponentModel.Compiler.AttributeInfo[] attributes, bool emitDependencyProperty, bool isMetaProperty, bool isAttached, Type ownerType, bool isReadOnly);
abstract member CreateProperty : string * string * Type * System.Workflow.ComponentModel.Compiler.AttributeInfo[] * bool * bool * bool * Type * bool -> unit
Public Sub CreateProperty (className As String, propertyName As String, propertyType As Type, attributes As AttributeInfo(), emitDependencyProperty As Boolean, isMetaProperty As Boolean, isAttached As Boolean, ownerType As Type, isReadOnly As Boolean)

Paramètres

className
String

Chaîne qui définit le nom de la classe à ajouter.

propertyName
String

Chaîne qui définit le nom du champ.

propertyType
Type

De Type la nouvelle propriété.

attributes
AttributeInfo[]

Tableau AttributeInfo qui contient des informations sur tous les attributs à affecter à la propriété.

emitDependencyProperty
Boolean

true pour émettre les propriétés de dépendance associées à la propriété ; sinon, false.

isMetaProperty
Boolean

true pour créer la propriété en tant que méta propriété ; sinon, false.

isAttached
Boolean

true pour indiquer que la propriété de dépendance émise a sa IsAttached propriété définie truesur ; sinon, false.

ownerType
Type

Déclaration Type de la propriété de dépendance.

isReadOnly
Boolean

true pour créer la propriété en tant que propriété en lecture seule ; false pour créer la propriété en tant que propriété en lecture-écriture.

S’applique à