Table of Contents

Class JsonContainerAttribute

Namespace
Newtonsoft.Json
Assembly
Newtonsoft.Json.dll

Instructs the JsonSerializer how to serialize the object.

[AttributeUsage(AttributeTargets.Class|AttributeTargets.Interface, AllowMultiple = false)]
public abstract class JsonContainerAttribute : Attribute
Inheritance
JsonContainerAttribute
Derived
Inherited Members

Constructors

JsonContainerAttribute()

Initializes a new instance of the JsonContainerAttribute class.

protected JsonContainerAttribute()

JsonContainerAttribute(string)

Initializes a new instance of the JsonContainerAttribute class with the specified container Id.

protected JsonContainerAttribute(string id)

Parameters

id string

The container Id.

Properties

Description

Gets or sets the description.

public string Description { get; set; }

Property Value

string

The description.

Id

Gets or sets the id.

public string Id { get; set; }

Property Value

string

The id.

IsReference

Gets or sets a value that indicates whether to preserve object reference data.

public bool IsReference { get; set; }

Property Value

bool

true to keep object reference; otherwise, false. The default is false.

Title

Gets or sets the title.

public string Title { get; set; }

Property Value

string

The title.