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 数组,其中包含要分配给更新属性的所有属性的信息。

emitDependencyProperty
Boolean

true 更新属性发出依赖属性;否则,为 false.

isMetaProperty
Boolean

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

适用于