Edit

Share via


ActivityTypeCodeDomSerializer.GetInitializeMethod Method

Definition

Returns the method where the statements used to serialize a member are stored.

C#
protected override System.CodeDom.CodeMemberMethod GetInitializeMethod(System.ComponentModel.Design.Serialization.IDesignerSerializationManager manager, System.CodeDom.CodeTypeDeclaration typeDecl, object value);

Parameters

manager
IDesignerSerializationManager

The serialization manager to use for serialization.

typeDecl
CodeTypeDeclaration

The CodeTypeDeclaration to use for serialization.

value
Object

The Object 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

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1