Compartilhar via


EntityRef<TEntity> Constructor

[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]

Initializes an instance of the EntityRef<TEntity> class.

Namespace:  System.ServiceModel.DomainServices.Client
Assembly:  System.ServiceModel.DomainServices.Client (in System.ServiceModel.DomainServices.Client.dll)

Syntax

'Declaration
Public Sub New ( _
    parent As Entity, _
    memberName As String, _
    entityPredicate As Func(Of TEntity, Boolean) _
)
'Usage
Dim parent As Entity
Dim memberName As String
Dim entityPredicate As Func(Of TEntity, Boolean)

Dim instance As New EntityRef(parent, _
    memberName, entityPredicate)
public EntityRef(
    Entity parent,
    string memberName,
    Func<TEntity, bool> entityPredicate
)
public:
EntityRef(
    Entity^ parent, 
    String^ memberName, 
    Func<TEntity, bool>^ entityPredicate
)
new : 
        parent:Entity * 
        memberName:string * 
        entityPredicate:Func<'TEntity, bool> -> EntityRef
public function EntityRef(
    parent : Entity, 
    memberName : String, 
    entityPredicate : Func<TEntity, boolean>
)

Parameters

See Also

Reference

EntityRef<TEntity> Class

System.ServiceModel.DomainServices.Client Namespace