共用方式為


TypeCodeDomSerializer.GetInitializeMethods 方法

定義

傳回要在還原序列化期間解譯的方法陣列。

protected:
 virtual cli::array <System::CodeDom::CodeMemberMethod ^> ^ GetInitializeMethods(System::ComponentModel::Design::Serialization::IDesignerSerializationManager ^ manager, System::CodeDom::CodeTypeDeclaration ^ declaration);
protected virtual System.CodeDom.CodeMemberMethod[] GetInitializeMethods (System.ComponentModel.Design.Serialization.IDesignerSerializationManager manager, System.CodeDom.CodeTypeDeclaration declaration);
abstract member GetInitializeMethods : System.ComponentModel.Design.Serialization.IDesignerSerializationManager * System.CodeDom.CodeTypeDeclaration -> System.CodeDom.CodeMemberMethod[]
override this.GetInitializeMethods : System.ComponentModel.Design.Serialization.IDesignerSerializationManager * System.CodeDom.CodeTypeDeclaration -> System.CodeDom.CodeMemberMethod[]
Protected Overridable Function GetInitializeMethods (manager As IDesignerSerializationManager, declaration As CodeTypeDeclaration) As CodeMemberMethod()

參數

manager
IDesignerSerializationManager

用於序列化的序列化管理員。

declaration
CodeTypeDeclaration

用於序列化的類型宣告。

傳回

方法的 CodeMemberMethod 陣列,要在還原序列化期間解譯。

例外狀況

managertypeDeclnull

備註

默認實作會傳回具有建構函式的單一元素陣列。

適用於

另請參閱