Share via


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.OData.Core
Assembly:  Microsoft.OData.Core (in Microsoft.OData.Core.dll)

Syntax

public bool AutoComputePayloadMetadataInJson {
    [CompilerGeneratedAttribute]
    get;
    [CompilerGeneratedAttribute]
    set;
}
public:
property bool AutoComputePayloadMetadataInJson {
    [CompilerGeneratedAttribute]
    bool get();
    [CompilerGeneratedAttribute]
    void set(bool value);
}
member AutoComputePayloadMetadataInJson : bool with get, set
Public Property AutoComputePayloadMetadataInJson As Boolean

Property Value

Type: System.Boolean

true if the writer should automatically generate or omit metadata in JSON payloads based on the metadata level; otherwise, false.

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

ODataMessageWriterSettings Class
Microsoft.OData.Core Namespace

Return to top