IMemberCreationService.UpdateProperty 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将新名称和类型设置为指定类上的属性。
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
包含属性的现有名称的字符串。
- newPropertyName
- String
包含属性的新名称的字符串。
- attributes
- AttributeInfo[]
一个 AttributeInfo 数组,其中包含要分配给更新属性的所有属性的信息。
- emitDependencyProperty
- Boolean
true 更新属性发出依赖属性;否则,为 false.
- isMetaProperty
- Boolean
true 将属性设置为元属性;否则,为 false.