AttributeCollection.FromExisting(AttributeCollection, Attribute[]) Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Vytvoří novou 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
Z AttributeCollection kterého chcete vytvořit kopii.
- newAttributes
- Attribute[]
Pole typu Attribute , které poskytuje atributy pro tuto kolekci. Může to být null.
Návraty
Nový AttributeCollection , který je kopií existing.
Výjimky
existing je null.
Poznámky
newAttributes Pokud je parametr zadaný, Attribute jeho položky se sloučí s položkami parametruexisting.