AttributeCollection.FromExisting(AttributeCollection, Attribute[]) Metoda

Definicja

Tworzy nowy AttributeCollection element na podstawie istniejącego AttributeCollectionelementu .

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

Element AttributeCollection , z którego ma zostać utworzona kopia.

newAttributes
Attribute[]

Tablica typu Attribute , która udostępnia atrybuty dla tej kolekcji. Może to być null.

Zwraca

Nowa AttributeCollection kopia elementu existing.

Wyjątki

existing to null.

Uwagi

newAttributes Jeśli parametr zostanie podany, jego Attribute wpisy są scalane z tymi z parametru existing .

Dotyczy