ActivityTypeCodeDomSerializer.GetInitializeMethod Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the method where the statements used to serialize a member are stored.
protected:
override System::CodeDom::CodeMemberMethod ^ GetInitializeMethod(System::ComponentModel::Design::Serialization::IDesignerSerializationManager ^ manager, System::CodeDom::CodeTypeDeclaration ^ typeDecl, System::Object ^ value);
protected override System.CodeDom.CodeMemberMethod GetInitializeMethod (System.ComponentModel.Design.Serialization.IDesignerSerializationManager manager, System.CodeDom.CodeTypeDeclaration typeDecl, object value);
override this.GetInitializeMethod : System.ComponentModel.Design.Serialization.IDesignerSerializationManager * System.CodeDom.CodeTypeDeclaration * obj -> System.CodeDom.CodeMemberMethod
Protected Overrides Function GetInitializeMethod (manager As IDesignerSerializationManager, typeDecl As CodeTypeDeclaration, value As Object) As CodeMemberMethod
Parameters
- manager
- IDesignerSerializationManager
The serialization manager to use for serialization.
- typeDecl
- CodeTypeDeclaration
The CodeTypeDeclaration to use for serialization.
Returns
The CodeMemberMethod used to emit all of the initialization code for the given member.
Exceptions
manager
, typeDecl
, or value
contains a null reference (Nothing
in Visual Basic).
Remarks
The returned method is determined from a method key found in the user data associated with typeDecl
. If there is no method key, GetInitializeMethod creates a new CodeMemberMethod.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈