ExtensionMethods.FindProperty Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.