AttributeCollection Constructors

Definitie

Initialiseert een nieuw exemplaar van de AttributeCollection klasse.

Overloads

Name Description
AttributeCollection()

Initialiseert een nieuw exemplaar van de AttributeCollection klasse.

AttributeCollection(Attribute[])

Initialiseert een nieuw exemplaar van de AttributeCollection klasse.

AttributeCollection()

Initialiseert een nieuw exemplaar van de AttributeCollection klasse.

protected:
 AttributeCollection();
protected AttributeCollection();
Protected Sub New ()

Zie ook

Van toepassing op

AttributeCollection(Attribute[])

Initialiseert een nieuw exemplaar van de AttributeCollection klasse.

public:
 AttributeCollection(cli::array <Attribute ^> ^ attributes);
public:
 AttributeCollection(... cli::array <Attribute ^> ^ attributes);
public AttributeCollection(Attribute[] attributes);
public AttributeCollection(params Attribute[] attributes);
new System.ComponentModel.AttributeCollection : Attribute[] -> System.ComponentModel.AttributeCollection
Public Sub New (attributes As Attribute())
Public Sub New (ParamArray attributes As Attribute())

Parameters

attributes
Attribute[]

Een matrix van het type Attribute dat de kenmerken voor deze verzameling levert.

Uitzonderingen

attributes is null.

Voorbeelden

In het volgende codevoorbeeld wordt een nieuwe AttributeCollection gemaakt met behulp van de kenmerken op button1. Hierbij wordt ervan uitgegaan dat button1 deze is gemaakt op een formulier.

AttributeCollection^ collection1;
collection1 = TypeDescriptor::GetAttributes( button1 );
_ = TypeDescriptor.GetAttributes(button1);
Dim collection1 As AttributeCollection
collection1 = TypeDescriptor.GetAttributes(button1)

Zie ook

Van toepassing op