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