AttributeCollection.FromExisting(AttributeCollection, Attribute[]) Metoda

Definicja

Tworzy nowy na AttributeCollection podstawie istniejącego AttributeCollection .Creates a new AttributeCollection from an existing AttributeCollection.

public:
 static System::ComponentModel::AttributeCollection ^ FromExisting(System::ComponentModel::AttributeCollection ^ existing, ... cli::array <Attribute ^> ^ newAttributes);
public static System.ComponentModel.AttributeCollection FromExisting (System.ComponentModel.AttributeCollection existing, params Attribute[] newAttributes);
static member FromExisting : System.ComponentModel.AttributeCollection * Attribute[] -> System.ComponentModel.AttributeCollection
Public Shared Function FromExisting (existing As AttributeCollection, ParamArray newAttributes As Attribute()) As AttributeCollection

Parametry

existing
AttributeCollection

, AttributeCollection Z którego ma zostać utworzona kopia.An AttributeCollection from which to create the copy.

newAttributes
Attribute[]

Tablica typu Attribute , który zawiera atrybuty dla tej kolekcji.An array of type Attribute that provides the attributes for this collection. Może być null .Can be null.

Zwraca

AttributeCollection

Nowy AttributeCollection , który jest kopią programu existing .A new AttributeCollection that is a copy of existing.

Wyjątki

existing to null.existing is null.

Uwagi

Jeśli newAttributes parametr jest podany, jego Attribute wpisy są scalane z existing parametrami.If the newAttributes parameter is provided, its Attribute entries are merged with those of the existing parameter.

Dotyczy