Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
 EntityRef(TEntity) Constructor (Ent...
.NET Framework Class Library
EntityRef<(Of <(TEntity>)>) Constructor (EntityRef<(Of <(TEntity>)>))

Updated: November 2007

Initializes a new instance of the EntityRef<(Of <(TEntity>)>) class by referencing the target entity.

Namespace:  System.Data.Linq
Assembly:  System.Data.Linq (in System.Data.Linq.dll)

Visual Basic (Declaration)
Public Sub New ( _
    entityRef As EntityRef(Of TEntity) _
)
Visual Basic (Usage)
Dim entityRef As EntityRef(Of TEntity)

Dim instance As New EntityRef(entityRef)
C#
public EntityRef(
    EntityRef<TEntity> entityRef
)
Visual C++
public:
EntityRef(
    EntityRef<TEntity> entityRef
)
J#
public EntityRef(
    EntityRef<TEntity> entityRef
)
JScript
public function EntityRef(
    entityRef : EntityRef<TEntity>
)

Parameters

entityRef
Type: System.Data.Linq..::.EntityRef<(Of <(TEntity>)>)

The target entity.

Windows Vista, Windows XP SP2, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker