Share via


ExtensionMethods.FindNavigationProperty Method

Definition

Finds a navigation property declared in the definition of this reference by name.

public static Microsoft.OData.Edm.IEdmNavigationProperty FindNavigationProperty (this Microsoft.OData.Edm.IEdmStructuredTypeReference type, string name);
static member FindNavigationProperty : Microsoft.OData.Edm.IEdmStructuredTypeReference * string -> Microsoft.OData.Edm.IEdmNavigationProperty
<Extension()>
Public Function FindNavigationProperty (type As IEdmStructuredTypeReference, name As String) As IEdmNavigationProperty

Parameters

type
IEdmStructuredTypeReference

Reference to the calling object.

name
String

Name of the navigation property to find.

Returns

The requested navigation property if it exists. Otherwise, null.

Applies to