MyGroupCollectionAttribute Constructor
Microsoft Silverlight will reach end of support after October 2021. Learn more.
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)
Syntax
'Declaration
Public Sub New ( _
typeToCollect As String, _
createInstanceMethodName As String, _
disposeInstanceMethodName As String, _
defaultInstanceAlias As String _
)
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.
Remarks
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.
Version Information
Silverlight
Supported in: 5, 4, 3
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.