ODataProperty Class

Represents a single property of an entry.

Inheritance Hierarchy

System.Object
  Microsoft.Data.OData.ODataAnnotatable
    Microsoft.Data.OData.ODataProperty

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

Syntax

'Declaration
Public NotInheritable Class ODataProperty _
    Inherits ODataAnnotatable
'Usage
Dim instance As ODataProperty
public sealed class ODataProperty : ODataAnnotatable
public ref class ODataProperty sealed : public ODataAnnotatable
[<SealedAttribute>]
type ODataProperty =  
    class 
        inherit ODataAnnotatable 
    end
public final class ODataProperty extends ODataAnnotatable

The ODataProperty type exposes the following members.

Constructors

  Name Description
Public method ODataProperty Initializes a new instance of the ODataProperty class.

Top

Properties

  Name Description
Public property Name Gets or sets the property name.
Public property Value Gets or sets the property value.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Public method GetAnnotation<T> Gets or sets the annotation by type. (Inherited from ODataAnnotatable.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method SetAnnotation<T> Sets an annotation of type T. (Inherited from ODataAnnotatable.)
Public method ToString (Inherited from Object.)

Top

Extension Methods

  Name Description
Public Extension Method SetSerializationInfo Provide additional serialization information to the ODataWriter for property. (Defined by ODataObjectModelExtensions.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Data.OData Namespace