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.

Creates a new instance of the MyGroupCollectionAttribute attribute.

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

'Declaration
Public Sub New ( _
	typeToCollect As String, _
	createInstanceMethodName As String, _
	disposeInstanceMethodName As String, _
	defaultInstanceAlias As String _
)

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 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.

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2015 Microsoft