Share via


ExtensionMethods.FindProperty Method

Definition

Overloads

FindProperty(IEdmStructuredTypeReference, String)

Finds a property from the definition of this reference.

FindProperty(IEdmRecordExpression, String)

Finds a property of a record expression.

FindProperty(IEdmStructuredTypeReference, String)

Finds a property from the definition of this reference.

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

Parameters

type
IEdmStructuredTypeReference

Reference to the calling object.

name
String

Name of the property to find.

Returns

The requested property if it exists. Otherwise, null.

Applies to

FindProperty(IEdmRecordExpression, String)

Finds a property of a record expression.

public static Microsoft.OData.Edm.Vocabularies.IEdmPropertyConstructor FindProperty (this Microsoft.OData.Edm.Vocabularies.IEdmRecordExpression expression, string name);
static member FindProperty : Microsoft.OData.Edm.Vocabularies.IEdmRecordExpression * string -> Microsoft.OData.Edm.Vocabularies.IEdmPropertyConstructor
<Extension()>
Public Function FindProperty (expression As IEdmRecordExpression, name As String) As IEdmPropertyConstructor

Parameters

expression
IEdmRecordExpression

The record expression.

name
String

Name of the property to find.

Returns

The property, if found, otherwise null.

Applies to