ContainsProperty Method (IEdmTypeReference, IEdmProperty)
Checks whether the specified property is defined for the type typeReference.
Namespace: Microsoft.Data.OData.Metadata
Assembly: Microsoft.Data.OData (in Microsoft.Data.OData.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function ContainsProperty ( _
typeReference As IEdmTypeReference, _
property As IEdmProperty _
) As Boolean
'Usage
Dim typeReference As IEdmTypeReference
Dim property As IEdmProperty
Dim returnValue As Boolean
returnValue = typeReference.ContainsProperty(property)
public static bool ContainsProperty(
this IEdmTypeReference typeReference,
IEdmProperty property
)
[ExtensionAttribute]
public:
static bool ContainsProperty(
IEdmTypeReference^ typeReference,
IEdmProperty^ property
)
static member ContainsProperty :
typeReference:IEdmTypeReference *
property:IEdmProperty -> bool
public static function ContainsProperty(
typeReference : IEdmTypeReference,
property : IEdmProperty
) : boolean
Parameters
- typeReference
Type: Microsoft.Data.Edm..::..IEdmTypeReference
The type to check the properties on.
- property
Type: Microsoft.Data.Edm..::..IEdmProperty
The property to check for.
Return Value
Type: System..::..Boolean
true if the property is defined for the typeReference; otherwise, false.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IEdmTypeReference. 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).