NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ComponentModelPersister.GenerateMemberInstanceCreation

Generates a single member create statement. This is used to construct objects inside of InitForm, instead of in the data member declaration.

[Visual Basic]
Overridable Protected Function GenerateMemberInstanceCreation( _
   ByVal memberName As String, _
   ByVal memberType As String, _
   ByVal constructorArgs() As Object _
) As ICodeStatement
[C#]
protected virtual ICodeStatement GenerateMemberInstanceCreation(
   string memberName,
   string memberType,
   object[] constructorArgs
);
[C++]
protected: virtual ICodeStatement* GenerateMemberInstanceCreation(
   String* memberName,
   String* memberType,
   Object* constructorArgs[]
);
[JScript]
protected function GenerateMemberInstanceCreation(
   memberName : String,
   memberType : String,
   constructorArgs : Object[]
) : ICodeStatement;

Parameters

memberName
The name of member to construct.
memberType
The string name of the class of the data member to construct.
constructorArgs
The arguments to pass to the constructor.

Return Value

An ICodeStatement that can persist the member's creation statement.

See Also

ComponentModelPersister Class | ComponentModelPersister Members | System.ComponentModel.Design Namespace