Partager via


ManagedObjectCollection<TItem>.AddNew Method

Definition

Overloads

AddNew(Type)
AddNew(Type, String)
AddNew<TTypeToBuild>()
AddNew<TTypeToBuild>(String)

AddNew(Type)

public:
 TItem AddNew(Type ^ typeToBuild);
public TItem AddNew (Type typeToBuild);
member this.AddNew : Type -> 'Item
Public Function AddNew (typeToBuild As Type) As TItem

Parameters

typeToBuild
Type

Returns

TItem

Applies to

AddNew(Type, String)

public:
 TItem AddNew(Type ^ typeToBuild, System::String ^ id);
public TItem AddNew (Type typeToBuild, string id);
member this.AddNew : Type * string -> 'Item
Public Function AddNew (typeToBuild As Type, id As String) As TItem

Parameters

typeToBuild
Type
id
String

Returns

TItem

Applies to

AddNew<TTypeToBuild>()

public:
generic <typename TTypeToBuild>
 where TTypeToBuild : TItem TTypeToBuild AddNew();
public TTypeToBuild AddNew<TTypeToBuild> () where TTypeToBuild : TItem;
member this.AddNew : unit -> 'ypeToBuild
Public Function AddNew(Of TTypeToBuild As TItem) () As TTypeToBuild

Type Parameters

TTypeToBuild

Returns

TTypeToBuild

Applies to

AddNew<TTypeToBuild>(String)

public:
generic <typename TTypeToBuild>
 where TTypeToBuild : TItem TTypeToBuild AddNew(System::String ^ id);
public TTypeToBuild AddNew<TTypeToBuild> (string id) where TTypeToBuild : TItem;
member this.AddNew : string -> 'ypeToBuild
Public Function AddNew(Of TTypeToBuild As TItem) (id As String) As TTypeToBuild

Type Parameters

TTypeToBuild

Parameters

id
String

Returns

TTypeToBuild

Applies to