This documentation is archived and is not being maintained.

MyGroupCollectionAttribute Constructor

This API 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
)

Parameters

typeToCollect
Type: System.String

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

createInstanceMethodName
Type: System.String

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

disposeInstanceMethodName
Type: System.String

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

defaultInstanceAlias
Type: System.String

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 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC

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

.NET Framework

Supported in: 3.5, 3.0, 2.0

.NET Compact Framework

Supported in: 3.5, 2.0
Show: