AttributeCollection.FromExisting(AttributeCollection, Attribute[]) メソッド

定義

既存の AttributeCollection から新しい 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

パラメーター

existing
AttributeCollection

コピー元の AttributeCollection

newAttributes
Attribute[]

コレクションの属性を提供する Attribute 型の配列。 null の可能性があります。

戻り値

existing のコピーである新しい AttributeCollection

例外

existingnull です。

注釈

パラメーターが newAttributes 指定されている場合、その Attribute エントリは パラメーターの existing エントリとマージされます。

適用対象