ObjectSet<TEntity>.CreateObject<T> Method ()

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Creates an instance of the specified type.

Namespace:   System.Data.Objects
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

public T CreateObject<T>()
where T : class, TEntity

Return Value

Type: T

An instance of the requested type T, or an instance of a proxy type that corresponds to the type T.

Type Parameters

T

Type of object to be returned.

.NET Framework
Available since 4.0
Return to top
Show: