ObjectSet<TEntity>.CreateObject 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
CreateObject() |
Creates a new entity type object. |
CreateObject<T>() |
Creates an instance of the specified type. |
CreateObject()
Creates a new entity type object.
public:
TEntity CreateObject();
public TEntity CreateObject ();
member this.CreateObject : unit -> 'Entity
Public Function CreateObject () As TEntity
Returns
The new entity type object, or an instance of a proxy type that corresponds to the entity type.
Applies to
CreateObject<T>()
Creates an instance of the specified type.
public:
generic <typename T>
where T : class, TEntity T CreateObject();
public T CreateObject<T> () where T : class, TEntity;
member this.CreateObject : unit -> 'T
Public Function CreateObject(Of T As {Class, TEntity}) () As T
Type Parameters
- T
Type of object to be returned.
Returns
An instance of the requested type T
, or an instance of a proxy type that corresponds to the type T
.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort beschikbaar: In de loop van 2024 zullen we GitHub-problemen geleidelijk uitfaseren als het feedbackmechanisme voor inhoud en deze vervangen door een nieuw feedbacksysteem. Zie voor meer informatie:Feedback verzenden en weergeven voor