Export (0) Print
Expand All

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.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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

Show:
© 2014 Microsoft