Share via


IEdmStructuredObject.TryGetPropertyValue Method (String, Object)

 

Gets the value of the property with the given name.

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

Syntax

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 As String,
    <OutAttribute> ByRef value As Object
) As 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

IEdmStructuredObject Interface
System.Web.OData Namespace

Return to top