This documentation is archived and is not being maintained.

MyGroupCollectionAttribute.MyGroupCollectionAttribute Constructor

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
)
Not applicable.

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 Server 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 Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

.NET Compact Framework

Supported in: 2.0
Show: