ManagedObjectCollection<TItem>.AddNew 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.
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)
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