AttributeCollection.FromExisting(AttributeCollection, Attribute[]) Method

Definition

Creates a new AttributeCollection from an existing AttributeCollection.

C#
public static System.ComponentModel.AttributeCollection FromExisting(System.ComponentModel.AttributeCollection existing, params Attribute[]? newAttributes);
C#
public static System.ComponentModel.AttributeCollection FromExisting(System.ComponentModel.AttributeCollection existing, params Attribute[] newAttributes);

Parameters

existing
AttributeCollection

An AttributeCollection from which to create the copy.

newAttributes
Attribute[]

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

Returns

A new AttributeCollection that is a copy of existing.

Exceptions

existing is null.

Remarks

If the newAttributes parameter is provided, its Attribute entries are merged with those of the existing parameter.

Applies to

Proizvod Verzije
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1