IMemberCreationService.UpdateProperty 方法

定义

将新名称和类型设置为指定类上的属性。

public:
 void UpdateProperty(System::String ^ className, System::String ^ oldPropertyName, Type ^ oldPropertyType, System::String ^ newPropertyName, Type ^ newPropertyType, cli::array <System::Workflow::ComponentModel::Compiler::AttributeInfo ^> ^ attributes, bool emitDependencyProperty, bool isMetaProperty);
public void UpdateProperty (string className, string oldPropertyName, Type oldPropertyType, string newPropertyName, Type newPropertyType, System.Workflow.ComponentModel.Compiler.AttributeInfo[] attributes, bool emitDependencyProperty, bool isMetaProperty);
abstract member UpdateProperty : string * string * Type * string * Type * System.Workflow.ComponentModel.Compiler.AttributeInfo[] * bool * bool -> unit
Public Sub UpdateProperty (className As String, oldPropertyName As String, oldPropertyType As Type, newPropertyName As String, newPropertyType As Type, attributes As AttributeInfo(), emitDependencyProperty As Boolean, isMetaProperty As Boolean)

参数

className
String

一个字符串,其中包含要更新的属性所在的类的名称。

oldPropertyName
String

一个字符串,其中包含属性的现有名称。

oldPropertyType
Type

与现有属性关联的 Type

newPropertyName
String

一个字符串,其中包含属性的新名称。

newPropertyType
Type

要与属性的更新版本关联的 Type

attributes
AttributeInfo[]

一个 AttributeInfo 数组,其中包含有关要分配给已更新的属性 (property) 的所有属性 (attribute) 的信息。

emitDependencyProperty
Boolean

true 则更新属性以发出依赖项属性;否则为 false

isMetaProperty
Boolean

true 则将属性设置为元属性;否则为 false

适用于