Export (0) Print
Expand All

GetPropertyValue Method (IEdmModel, IEdmStructuredValue, IEdmProperty, EdmEvaluator)

WCF Data Services 5.0

Gets the IEdmValue of a property of a term type that has been applied to the type of a value.

Namespace:  Microsoft.Data.Edm
Assembly:  Microsoft.Data.Edm (in Microsoft.Data.Edm.dll)

public static IEdmValue GetPropertyValue(
	this IEdmModel model,
	IEdmStructuredValue context,
	IEdmProperty property,
	EdmEvaluator evaluator
)

Parameters

model
Type: Microsoft.Data.Edm..::..IEdmModel
The model to search for type annotations.
context
Type: Microsoft.Data.Edm.Values..::..IEdmStructuredValue
The value to use as context in evaluation.
property
Type: Microsoft.Data.Edm..::..IEdmProperty
The property to evaluate.
evaluator
Type: Microsoft.Data.Edm.Evaluation..::..EdmEvaluator
The evaluator to use to perform expression evaluation.

Return Value

Type: Microsoft.Data.Edm.Values..::..IEdmValue
The value of the property evaluated against the supplied value, or null if no relevant type annotation exists.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEdmModel. When you use instance method syntax to call this method, omit the first parameter. For more information, see http://msdn.microsoft.com/en-us/library/bb384936(v=vs.103).aspx or http://msdn.microsoft.com/en-us/library/bb383977(v=vs.103).aspx.
Show:
© 2014 Microsoft