ExtensionMethods.FindProperty Method (IEdmStructuredTypeReference, String)
Finds a 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 FindProperty ( _
type As IEdmStructuredTypeReference, _
name As String _
) As IEdmProperty
'Usage
Dim type As IEdmStructuredTypeReference
Dim name As String
Dim returnValue As IEdmProperty
returnValue = type.FindProperty(name)
public static IEdmProperty FindProperty(
this IEdmStructuredTypeReference type,
string name
)
[ExtensionAttribute]
public:
static IEdmProperty^ FindProperty(
IEdmStructuredTypeReference^ type,
String^ name
)
static member FindProperty :
type:IEdmStructuredTypeReference *
name:string -> IEdmProperty
public static function FindProperty(
type : IEdmStructuredTypeReference,
name : String
) : IEdmProperty
Parameters
- type
Type: Microsoft.Data.Edm.IEdmStructuredTypeReference
The reference to a structured type.
- name
Type: System.String
The name of the property to find.
Return Value
Type: Microsoft.Data.Edm.IEdmProperty
The property, if found, otherwise null.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IEdmStructuredTypeReference. 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).