Export (0) Print
Expand All

MyGroupCollectionAttribute Constructor

Note: This constructor is new in the .NET Framework version 2.0.

This constructor supports the .NET Framework infrastructure and is not intended to be used directly from your code.

This attribute supports My.Forms and My.WebServices in Visual Basic.

Namespace: Microsoft.VisualBasic
Assembly: Microsoft.VisualBasic (in microsoft.visualbasic.dll)

public MyGroupCollectionAttribute (
	string typeToCollect,
	string createInstanceMethodName,
	string disposeInstanceMethodName,
	string defaultInstanceAlias
)
public MyGroupCollectionAttribute (
	String typeToCollect, 
	String createInstanceMethodName, 
	String disposeInstanceMethodName, 
	String defaultInstanceAlias
)
public function MyGroupCollectionAttribute (
	typeToCollect : String, 
	createInstanceMethodName : String, 
	disposeInstanceMethodName : String, 
	defaultInstanceAlias : String
)

Parameters

typeToCollect

String. Initializes the MyGroupName property. The compiler generates accessor properties for classes that derive from this type.

createInstanceMethodName

String. Initializes the CreateMethod property. Specifies the method in the class that creates the type's instances.

disposeInstanceMethodName

String. Initializes the DisposeMethod property. Specifies the method in the class that disposes of the type's instances.

defaultInstanceAlias

String. Initializes the DefaultInstanceAlias property. Specifies the name of the property that returns the default instance of the class.

This attribute supports My.Forms and My.WebServices in Visual Basic. It is not intended to be used directly from your code.

When this attribute is put on a class, the compiler fills that class with properties corresponding to all the types in the project that derive from the type specified by the MyGroupName property.

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

.NET Compact Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2015 Microsoft