Share via


AttributeCollection.FromExisting(AttributeCollection, Attribute[]) Metoda

Definice

Vytvoří nový AttributeCollection z existujícího AttributeCollectionobjektu .

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);
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

Objekt AttributeCollection , ze kterého chcete vytvořit kopii.

newAttributes
Attribute[]

Pole typu Attribute , které poskytuje atributy pro tuto kolekci. Může být null.

Návraty

Nový AttributeCollection , který je kopií souboru existing.

Výjimky

existing je null.

Poznámky

newAttributes Pokud je parametr zadaný, jeho Attribute položky se sloučí s položkami parametruexisting.

Platí pro