Bewerken

Delen via


AttributeCollection Constructors

Definition

Initializes a new instance of the AttributeCollection class.

Overloads

AttributeCollection()

Initializes a new instance of the AttributeCollection class.

AttributeCollection(Attribute[])

Initializes a new instance of the AttributeCollection class.

AttributeCollection()

Source:
AttributeCollection.cs
Source:
AttributeCollection.cs
Source:
AttributeCollection.cs

Initializes a new instance of the AttributeCollection class.

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

See also

Applies to

AttributeCollection(Attribute[])

Source:
AttributeCollection.cs
Source:
AttributeCollection.cs
Source:
AttributeCollection.cs

Initializes a new instance of the AttributeCollection class.

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

Parameters

attributes
Attribute[]

An array of type Attribute that provides the attributes for this collection.

Exceptions

attributes is null.

Examples

The following code example creates a new AttributeCollection using the attributes on button1. It assumes that button1 has been created on a form.

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

See also

Applies to