AttributeCollection.FromExisting(AttributeCollection, Attribute[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om