ExtensionMethods.FindNavigationProperty Method

Searches for a navigation property with the specified type and name.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function FindNavigationProperty ( _
    type As IEdmEntityTypeReference, _
    name As String _
) As IEdmNavigationProperty
'Usage
Dim type As IEdmEntityTypeReference 
Dim name As String 
Dim returnValue As IEdmNavigationProperty 

returnValue = type.FindNavigationProperty(name)
public static IEdmNavigationProperty FindNavigationProperty(
    this IEdmEntityTypeReference type,
    string name
)
[ExtensionAttribute]
public:
static IEdmNavigationProperty^ FindNavigationProperty(
    IEdmEntityTypeReference^ type, 
    String^ name
)
static member FindNavigationProperty : 
        type:IEdmEntityTypeReference * 
        name:string -> IEdmNavigationProperty
public static function FindNavigationProperty(
    type : IEdmEntityTypeReference, 
    name : String
) : IEdmNavigationProperty

Parameters

  • name
    Type: System.String
    The name of the navigation property being found.

Return Value

Type: Microsoft.Data.Edm.IEdmNavigationProperty
The requested navigation property.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEdmEntityTypeReference. 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