AttributeCollection Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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)