Share via


SerializationTypeNameAnnotation.TypeName Property

Gets or sets the type name to serialize, for the annotated item.

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

Syntax

'Declaration
Public Property TypeName As String 
    Get 
    Set
'Usage
Dim instance As SerializationTypeNameAnnotation 
Dim value As String 

value = instance.TypeName

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

Property Value

Type: System.String
The type name to serialize, for the annotated item.

Remarks

If this property is null, no type name will be written. If this property is non-null, the property value will be used as the type name written to the payload. If this annotation is present, it always overrides the type name specified on the annotated item. If this annotation is not present, the value of the TypeName property on the ODataEntry, ODataComplexValue, or ODataMultiValue is used as the type name in the payload.

See Also

Reference

SerializationTypeNameAnnotation Class

Microsoft.Data.OData Namespace