Uređivanje

Dijeli putem


MyGroupCollectionAttribute(String, String, String, String) Constructor

Definition

This attribute supports My.Forms and My.WebServices in Visual Basic.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 MyGroupCollectionAttribute(System::String ^ typeToCollect, System::String ^ createInstanceMethodName, System::String ^ disposeInstanceMethodName, System::String ^ defaultInstanceAlias);
public MyGroupCollectionAttribute (string typeToCollect, string createInstanceMethodName, string disposeInstanceMethodName, string defaultInstanceAlias);
new Microsoft.VisualBasic.MyGroupCollectionAttribute : string * string * string * string -> Microsoft.VisualBasic.MyGroupCollectionAttribute
Public Sub New (typeToCollect As String, createInstanceMethodName As String, disposeInstanceMethodName As String, defaultInstanceAlias As String)

Parameters

typeToCollect
String

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

createInstanceMethodName
String

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

disposeInstanceMethodName
String

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

defaultInstanceAlias
String

String. Initializes the DefaultInstanceAlias property. Specifies the name of the property that returns the default instance of the class.

Remarks

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.

Applies to

See also