IMemberCreationService.CreateProperty(String, String, Type, AttributeInfo[], Boolean, Boolean, Boolean, Type, Boolean) Método
Definição
Cria uma propriedade na classe especificada usando o nome da propriedade indicado, o tipo de propriedade e os atributos.Creates a property on the specified class by using the specified property name, property type and attributes.
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)
Parâmetros
- className
- String
Uma cadeia de caracteres que define o nome da classe a ser adicionada ao campo.A string that defines the name of the class to add the field.
- propertyName
- String
Uma cadeia de caracteres que define o nome do campo.A string that defines the name of the field.
- attributes
- AttributeInfo[]
Uma matriz AttributeInfo que contém informações sobre todos os atributos a serem atribuídos à propriedade.An AttributeInfo array that contains information on all attributes to assign to the property.
- emitDependencyProperty
- Boolean
true para emitir as propriedades de dependência associadas à propriedade; caso contrário, false.true to emit any dependency properties associated with the property; otherwise, false.
- isMetaProperty
- Boolean
true para criar a propriedade como uma propriedade de metadados; caso contrário, false.true to create the property as a meta property; otherwise, false.
- isAttached
- Boolean
true para indicar que a propriedade de dependência emitida tem sua propriedade IsAttached definida como true; caso contrário, false.true to indicate that the emitted dependency property has its IsAttached property set to true; otherwise, false.
- ownerType
- Type
O Type que está declarando a propriedade de dependência.The Type that is declaring the dependency property.
- isReadOnly
- Boolean
true para criar a propriedade como uma propriedade somente leitura; false para criar a propriedade como uma propriedade de leitura/gravação.true to create the property as a read-only property; false to create the property as a read-write property.