ExtensionMethods.TryGetStaticEntitySet Method

Analyzes IEdmFunctionImport.EntitySet expression and returns a static IEdmFunctionImport reference if available.

Namespace:  Microsoft.Data.Edm
Assembly:  Microsoft.Data.Edm (in Microsoft.Data.Edm.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function TryGetStaticEntitySet ( _
    functionImport As IEdmFunctionImport, _
    <OutAttribute> ByRef entitySet As IEdmEntitySet _
) As Boolean
'Usage
Dim functionImport As IEdmFunctionImport 
Dim entitySet As IEdmEntitySet 
Dim returnValue As Boolean 

returnValue = functionImport.TryGetStaticEntitySet(entitySet)
public static bool TryGetStaticEntitySet(
    this IEdmFunctionImport functionImport,
    out IEdmEntitySet entitySet
)
[ExtensionAttribute]
public:
static bool TryGetStaticEntitySet(
    IEdmFunctionImport^ functionImport, 
    [OutAttribute] IEdmEntitySet^% entitySet
)
static member TryGetStaticEntitySet : 
        functionImport:IEdmFunctionImport * 
        entitySet:IEdmEntitySet byref -> bool
public static function TryGetStaticEntitySet(
    functionImport : IEdmFunctionImport, 
    entitySet : IEdmEntitySet
) : boolean

Parameters

Return Value

Type: System.Boolean
true if the entity set expression of the functionImport contains a static reference to an IEdmEntitySet; otherwise, false.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEdmFunctionImport. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.103) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.103).

See Also

Reference

ExtensionMethods Class

Microsoft.Data.Edm Namespace