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 数组,其中包含有关要分配给已更新的属性 (property) 的所有属性 (attribute) 的信息。
- emitDependencyProperty
- Boolean
为 true
则更新属性以发出依赖项属性;否则为 false
。
- isMetaProperty
- Boolean
为 true
则将属性设置为元属性;否则为 false
。