Share via


IEdmStructuredObject.TryGetPropertyValue Method

Gets the value of the property with the given name.

Namespace:  System.Web.Http.OData
Assembly:  System.Web.Http.OData (in System.Web.Http.OData.dll)

Syntax

'Declaration
Function TryGetPropertyValue ( _
    propertyName As String, _
    <OutAttribute> ByRef value As Object _
) As Boolean
'Usage
Dim instance As IEdmStructuredObject 
Dim propertyName As String 
Dim value As Object 
Dim returnValue As Boolean 

returnValue = instance.TryGetPropertyValue(propertyName, _
    value)
bool TryGetPropertyValue(
    string propertyName,
    out Object value
)
bool TryGetPropertyValue(
    String^ propertyName, 
    [OutAttribute] Object^% value
)
abstract TryGetPropertyValue : 
        propertyName:string * 
        value:Object byref -> bool
function TryGetPropertyValue(
    propertyName : String, 
    value : Object
) : boolean

Parameters

  • propertyName
    Type: System.String
    The name of the property to get.
  • value
    Type: System.Object%
    When this method returns, contains the value of the property with the given name, if the property is found; otherwise, [null]. The parameter is passed uninitialized.

Return Value

Type: System.Boolean
[true] if the instance contains the property with the given name; otherwise, [false].

See Also

Reference

IEdmStructuredObject Interface

System.Web.Http.OData Namespace