Share via


ODataModelBuilder.DataServiceVersion Property

Gets or sets the data service version of the model. The default value is 3.0.

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

Syntax

'Declaration
Public Property DataServiceVersion As Version 
    Get 
    Set
'Usage
Dim instance As ODataModelBuilder 
Dim value As Version 

value = instance.DataServiceVersion

instance.DataServiceVersion = value
public Version DataServiceVersion { get; set; }
public:
property Version^ DataServiceVersion {
    Version^ get ();
    void set (Version^ value);
}
member DataServiceVersion : Version with get, set
function get DataServiceVersion () : Version 
function set DataServiceVersion (value : Version)

Property Value

Type: System.Version
The data service version of the model.

See Also

Reference

ODataModelBuilder Class

System.Web.Http.OData.Builder Namespace