DataContractJsonSerializer.WriteObjectContent 메서드

정의

래핑 요소를 쓰지 않고 JSON(JavaScript Object Notation)에 매핑할 수 있는 XML에 개체의 콘텐츠를 씁니다.

오버로드

WriteObjectContent(XmlDictionaryWriter, Object)

XmlDictionaryWriter를 사용하여 JSON에 매핑할 수 있는 XML 콘텐츠를 씁니다.

WriteObjectContent(XmlWriter, Object)

XmlWriter를 사용하여 JSON에 매핑할 수 있는 XML 콘텐츠를 씁니다.

WriteObjectContent(XmlDictionaryWriter, Object)

Source:
DataContractJsonSerializer.cs
Source:
DataContractJsonSerializer.cs
Source:
DataContractJsonSerializer.cs

XmlDictionaryWriter를 사용하여 JSON에 매핑할 수 있는 XML 콘텐츠를 씁니다.

public:
 override void WriteObjectContent(System::Xml::XmlDictionaryWriter ^ writer, System::Object ^ graph);
public override void WriteObjectContent (System.Xml.XmlDictionaryWriter writer, object? graph);
public override void WriteObjectContent (System.Xml.XmlDictionaryWriter writer, object graph);
override this.WriteObjectContent : System.Xml.XmlDictionaryWriter * obj -> unit
Public Overrides Sub WriteObjectContent (writer As XmlDictionaryWriter, graph As Object)

매개 변수

graph
Object

쓸 개체입니다.

예외

serialize하고 있는 형식이 데이터 계약 규칙을 따르지 않는 경우. DataContractAttribute 특성이 형식에 적용되지 않은 경우를 예로 들 수 있습니다.

쓰고 있는 인스턴스에 문제가 있는 경우

serialize할 최대 개체 수가 초과된 경우. MaxItemsInObjectGraph 속성을 확인합니다.

적용 대상

WriteObjectContent(XmlWriter, Object)

Source:
DataContractJsonSerializer.cs
Source:
DataContractJsonSerializer.cs
Source:
DataContractJsonSerializer.cs

XmlWriter를 사용하여 JSON에 매핑할 수 있는 XML 콘텐츠를 씁니다.

public:
 override void WriteObjectContent(System::Xml::XmlWriter ^ writer, System::Object ^ graph);
public override void WriteObjectContent (System.Xml.XmlWriter writer, object? graph);
public override void WriteObjectContent (System.Xml.XmlWriter writer, object graph);
override this.WriteObjectContent : System.Xml.XmlWriter * obj -> unit
Public Overrides Sub WriteObjectContent (writer As XmlWriter, graph As Object)

매개 변수

writer
XmlWriter

쓰기를 수행하는 데 사용되는 XmlWriter입니다.

graph
Object

쓸 개체입니다.

예외

serialize하고 있는 형식이 데이터 계약 규칙을 따르지 않는 경우. DataContractAttribute 특성이 형식에 적용되지 않은 경우를 예로 들 수 있습니다.

쓰고 있는 인스턴스에 문제가 있는 경우

serialize할 최대 개체 수가 초과된 경우. MaxItemsInObjectGraph 속성을 확인합니다.

적용 대상