Share via


ODataSerializerContext.RootElementName Property

Gets or sets the root element name which is used when writing primitive types and complex types.

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

Syntax

'Declaration
Public Property RootElementName As String 
    Get 
    Set
'Usage
Dim instance As ODataSerializerContext 
Dim value As String 

value = instance.RootElementName

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

Property Value

Type: System.String
The root element name which is used when writing primitive types and complex types.

See Also

Reference

ODataSerializerContext Class

System.Web.Http.OData.Formatter.Serialization Namespace