Utf8JsonWriter.WriteBoolean 메서드

정의

오버로드

Name Description
WriteBoolean(String, Boolean)

문자열 Boolean 로 지정된 속성 이름과 값(JSON 리터럴 true 또는 false)을 JSON 개체의 이름/값 쌍의 일부로 씁니다.

WriteBoolean(JsonEncodedText, Boolean)

미리 인코딩된 속성 이름 및 Boolean 값(JSON 리터럴 true 또는 false)을 JSON 개체의 이름/값 쌍의 일부로 씁니다.

WriteBoolean(ReadOnlySpan<Byte>, Boolean)

읽기 전용 바이트 Boolean 범위로 지정된 속성 이름과 JSON 개체의 이름/값 쌍의 일부로 값(JSON 리터럴 true 또는 false)을 씁니다.

WriteBoolean(ReadOnlySpan<Char>, Boolean)

읽기 전용 문자 범위 Boolean 로 지정된 속성 이름과 JSON 개체의 이름/값 쌍의 일부로 값(JSON 리터럴 true 또는 false)을 씁니다.

WriteBoolean(String, Boolean)

Source:
Utf8JsonWriter.WriteProperties.Literal.cs
Source:
Utf8JsonWriter.WriteProperties.Literal.cs
Source:
Utf8JsonWriter.WriteProperties.Literal.cs
Source:
Utf8JsonWriter.WriteProperties.Literal.cs
Source:
Utf8JsonWriter.WriteProperties.Literal.cs
Source:
Utf8JsonWriter.WriteProperties.Literal.cs
Source:
Utf8JsonWriter.WriteProperties.Literal.cs

문자열 Boolean 로 지정된 속성 이름과 값(JSON 리터럴 true 또는 false)을 JSON 개체의 이름/값 쌍의 일부로 씁니다.

public:
 void WriteBoolean(System::String ^ propertyName, bool value);
public void WriteBoolean(string propertyName, bool value);
member this.WriteBoolean : string * bool -> unit
Public Sub WriteBoolean (propertyName As String, value As Boolean)

매개 변수

propertyName
String

코드 변환 및 UTF-8로 작성할 JSON 개체의 UTF-16 인코딩된 속성 이름입니다.

value
Boolean

이름/값 쌍의 일부로 JSON 리터럴 true 또는 false 로 작성할 값입니다.

예외

지정한 속성 이름이 너무 큽합니다.

유효성 검사를 사용하도록 설정하면 작업이 잘못된 JSON을 작성하게 될 수 있습니다.

매개 변수는 propertyName .입니다 null.

설명

속성 이름은 쓰기 전에 이스케이프됩니다.

적용 대상

WriteBoolean(JsonEncodedText, Boolean)

Source:
Utf8JsonWriter.WriteProperties.Literal.cs
Source:
Utf8JsonWriter.WriteProperties.Literal.cs
Source:
Utf8JsonWriter.WriteProperties.Literal.cs
Source:
Utf8JsonWriter.WriteProperties.Literal.cs
Source:
Utf8JsonWriter.WriteProperties.Literal.cs
Source:
Utf8JsonWriter.WriteProperties.Literal.cs
Source:
Utf8JsonWriter.WriteProperties.Literal.cs

미리 인코딩된 속성 이름 및 Boolean 값(JSON 리터럴 true 또는 false)을 JSON 개체의 이름/값 쌍의 일부로 씁니다.

public:
 void WriteBoolean(System::Text::Json::JsonEncodedText propertyName, bool value);
public void WriteBoolean(System.Text.Json.JsonEncodedText propertyName, bool value);
member this.WriteBoolean : System.Text.Json.JsonEncodedText * bool -> unit
Public Sub WriteBoolean (propertyName As JsonEncodedText, value As Boolean)

매개 변수

propertyName
JsonEncodedText

코드 변환 및 UTF-8로 작성할 JSON 개체의 JSON 인코딩된 속성 이름입니다.

value
Boolean

이름/값 쌍의 일부로 JSON 리터럴 true 또는 false 로 작성할 값입니다.

예외

유효성 검사를 사용하도록 설정하면 이 메서드로 인해 잘못된 JSON을 작성할 수 있습니다.

설명

인스턴스 JsonEncodedText 를 만들 때 속성 이름은 이미 이스케이프되어야 합니다.

적용 대상

WriteBoolean(ReadOnlySpan<Byte>, Boolean)

Source:
Utf8JsonWriter.WriteProperties.Literal.cs
Source:
Utf8JsonWriter.WriteProperties.Literal.cs
Source:
Utf8JsonWriter.WriteProperties.Literal.cs
Source:
Utf8JsonWriter.WriteProperties.Literal.cs
Source:
Utf8JsonWriter.WriteProperties.Literal.cs
Source:
Utf8JsonWriter.WriteProperties.Literal.cs
Source:
Utf8JsonWriter.WriteProperties.Literal.cs

읽기 전용 바이트 Boolean 범위로 지정된 속성 이름과 JSON 개체의 이름/값 쌍의 일부로 값(JSON 리터럴 true 또는 false)을 씁니다.

public:
 void WriteBoolean(ReadOnlySpan<System::Byte> utf8PropertyName, bool value);
public void WriteBoolean(ReadOnlySpan<byte> utf8PropertyName, bool value);
member this.WriteBoolean : ReadOnlySpan<byte> * bool -> unit
Public Sub WriteBoolean (utf8PropertyName As ReadOnlySpan(Of Byte), value As Boolean)

매개 변수

utf8PropertyName
ReadOnlySpan<Byte>

쓸 JSON 개체의 UTF-8로 인코딩된 속성 이름입니다.

value
Boolean

이름/값 쌍의 일부로 JSON 리터럴 true 또는 false 로 작성할 값입니다.

예외

지정한 속성 이름이 너무 큽합니다.

유효성 검사를 사용하도록 설정하면 작업이 잘못된 JSON을 작성하게 될 수 있습니다.

설명

속성 이름은 쓰기 전에 이스케이프됩니다.

적용 대상

WriteBoolean(ReadOnlySpan<Char>, Boolean)

Source:
Utf8JsonWriter.WriteProperties.Literal.cs
Source:
Utf8JsonWriter.WriteProperties.Literal.cs
Source:
Utf8JsonWriter.WriteProperties.Literal.cs
Source:
Utf8JsonWriter.WriteProperties.Literal.cs
Source:
Utf8JsonWriter.WriteProperties.Literal.cs
Source:
Utf8JsonWriter.WriteProperties.Literal.cs
Source:
Utf8JsonWriter.WriteProperties.Literal.cs

읽기 전용 문자 범위 Boolean 로 지정된 속성 이름과 JSON 개체의 이름/값 쌍의 일부로 값(JSON 리터럴 true 또는 false)을 씁니다.

public:
 void WriteBoolean(ReadOnlySpan<char> propertyName, bool value);
public void WriteBoolean(ReadOnlySpan<char> propertyName, bool value);
member this.WriteBoolean : ReadOnlySpan<char> * bool -> unit
Public Sub WriteBoolean (propertyName As ReadOnlySpan(Of Char), value As Boolean)

매개 변수

propertyName
ReadOnlySpan<Char>

코드 변환 및 UTF-8로 작성할 JSON 개체의 UTF-16 인코딩된 속성 이름입니다.

value
Boolean

이름/값 쌍의 일부로 JSON 리터럴 true 또는 false 로 작성할 값입니다.

예외

지정한 속성 이름이 너무 큽합니다.

유효성 검사를 사용하도록 설정하면 작업이 잘못된 JSON을 작성하게 될 수 있습니다.

설명

속성 이름은 쓰기 전에 이스케이프됩니다.

적용 대상