EntityContainer.TryGetEntitySet Method

[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.]

Tries to get the entity set for the specified Entity type.

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

Syntax

'Declaration
Public Function TryGetEntitySet ( _
    entityType As Type, _
    <OutAttribute> ByRef entitySet As EntitySet _
) As Boolean
'Usage
Dim instance As EntityContainer
Dim entityType As Type
Dim entitySet As EntitySet
Dim returnValue As Boolean

returnValue = instance.TryGetEntitySet(entityType, _
    entitySet)
public bool TryGetEntitySet(
    Type entityType,
    out EntitySet entitySet
)
public:
bool TryGetEntitySet(
    Type^ entityType, 
    [OutAttribute] EntitySet^% entitySet
)
member TryGetEntitySet : 
        entityType:Type * 
        entitySet:EntitySet byref -> bool 
public function TryGetEntitySet(
    entityType : Type, 
    entitySet : EntitySet
) : boolean

Parameters

Return Value

Type: System.Boolean
true if the entity set is found; otherwise, false.

See Also

Reference

EntityContainer Class

System.ServiceModel.DomainServices.Client Namespace