Uređivanje

Dijeli putem


AttributeCollection.FromExisting(AttributeCollection, Attribute[]) Method

Definition

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

Parameters

existing
AttributeCollection

An AttributeCollection from which to create the copy.

newAttributes
Attribute[]

An array of type Attribute that provides the attributes for this collection. Can be null.

Returns

A new AttributeCollection that is a copy of existing.

Exceptions

existing is null.

Remarks

If the newAttributes parameter is provided, its Attribute entries are merged with those of the existing parameter.

Applies to