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)

Syntax

'Declaration
Public Property AutoComputePayloadMetadataInJson As Boolean 
    Get 
    Set
'Usage
Dim instance As ODataMessageWriterSettings 
Dim value As Boolean 

value = instance.AutoComputePayloadMetadataInJson

instance.AutoComputePayloadMetadataInJson = value
public bool AutoComputePayloadMetadataInJson { get; set; }
public:
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

Remarks

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

Reference

ODataMessageWriterSettings Class

Microsoft.Data.OData Namespace