ODataMessageWriterSettings.AutoComputePayloadMetadataInJson Property

Gets or sets a value that indicates whether the writer should automatically generate or omit metadata in JSON payloads based on the metadata level.

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


Public Property AutoComputePayloadMetadataInJson As Boolean 
Dim instance As ODataMessageWriterSettings 
Dim value As Boolean 

value = instance.AutoComputePayloadMetadataInJson

instance.AutoComputePayloadMetadataInJson = value
public bool AutoComputePayloadMetadataInJson { get; set; }
property bool AutoComputePayloadMetadataInJson {
    bool get ();
    void set (bool value);
member AutoComputePayloadMetadataInJson : bool with get, set
function get AutoComputePayloadMetadataInJson () : boolean 
function set AutoComputePayloadMetadataInJson (value : boolean)

Property Value

Type: System.Boolean


Payload metadata includes the type names of entries and property values as well as any information that may be computed automatically, such as edit links. If, for example, ODataEntry.EditLink is not specified, then it will be automatically computed and written out in full metadata mode. If ODataEntry.EditLink is specified, then that value will be considered an "override" of the default computed edit link, and will be written out in full and minimal metadata modes. It will not be written in no metadata mode.

See Also


ODataMessageWriterSettings Class

Microsoft.Data.OData Namespace