AttributeCollection.FromExisting(AttributeCollection, Attribute[]) Metódus

Definíció

Újat AttributeCollection hoz létre egy meglévőből 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);
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

Paraméterek

existing
AttributeCollection

Egy AttributeCollection , amelyből létre kívánja hozni a másolatot.

newAttributes
Attribute[]

A gyűjtemény attribútumait biztosító típustömb Attribute . Lehet null.

Válaszok

Egy új AttributeCollection , amely a másolata existing.

Kivételek

existing az null.

Megjegyzések

Ha a newAttributes paraméter meg van adva, a rendszer egyesíti a Attribute bejegyzéseit a existing paraméter bejegyzéseivel.

A következőre érvényes: