You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: xml/System.Text.Json/JsonElement.xml
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -170,20 +170,20 @@ This method does not parse the contents of a JSON string value.
170
170
</ReturnValue>
171
171
<Parameters />
172
172
<Docs>
173
-
<summary>Gets the value of the element as bytes.</summary>
174
-
<returns>The value decode to bytes.</returns>
173
+
<summary>Gets the value of the element as a byte array.</summary>
174
+
<returns>The value decoded as a byte array.</returns>
175
175
<remarks>
176
176
<formattype="text/markdown">
177
177
<![CDATA[
178
178
179
179
## Remarks
180
180
181
-
This method does not create a byte[] representation of values other than base 64encoded JSON strings.
181
+
This method does not create a byte representation of values other than base 64-encoded JSON strings.
182
182
183
183
]]>
184
184
</format>
185
185
</remarks>
186
-
<exceptioncref="T:System.InvalidOperationException">This value's <seecref="P:System.Text.Json.JsonElement.ValueKind" /> is not <seecref="F:System.Text.Json.JsonValueKind.String" />.</exception>
186
+
<exceptioncref="T:System.InvalidOperationException">This value's <seecref="P:System.Text.Json.JsonElement.Type" /> is not <seecref="F:System.Text.Json.JsonValueType.String" />.</exception>
187
187
<exceptioncref="T:System.FormatException">The value is not encoded as base 64 text and hence cannot be decoded to bytes.</exception>
188
188
<exceptioncref="T:System.ObjectDisposedException">The parent <seecref="T:System.Text.Json.JsonDocument" /> has been disposed.</exception>
189
189
</Docs>
@@ -752,8 +752,8 @@ For other types, the value of <xref:System.Text.Json.JsonElement.GetRawText> is
<summary>Attempts to represent the current JSON string as bytes assuming it is base 64encoded.</summary>
755
+
<paramname="value">When the method returns, contains the byte representation of <paramrefname="value" /> if the method succeeded.</param>
756
+
<summary>Attempts to represent the current JSON string as a byte array, assuming that it is base 64-encoded.</summary>
757
757
<returns>
758
758
<seelangword="true" /> if the entire token value is encoded as valid base 64 text and can be successfully decoded to bytes.
759
759
<seelangword="false" /> otherwise.</returns>
@@ -763,12 +763,12 @@ For other types, the value of <xref:System.Text.Json.JsonElement.GetRawText> is
763
763
764
764
## Remarks
765
765
766
-
This method does not create a byte[] representation of values other than bsae 64encoded JSON strings.
766
+
This method does not create a byte array representation of values other than bsae 64-encoded JSON strings.
767
767
768
768
]]>
769
769
</format>
770
770
</remarks>
771
-
<exceptioncref="T:System.InvalidOperationException">This value's <seecref="P:System.Text.Json.JsonElement.ValueKind" /> is not <seecref="F:System.Text.Json.JsonValueKind.String" />.</exception>
771
+
<exceptioncref="T:System.InvalidOperationException">This value's <seecref="P:System.Text.Json.JsonElement.Type" /> is not <seecref="F:System.Text.Json.JsonValueType.String" />.</exception>
772
772
<exceptioncref="T:System.ObjectDisposedException">The parent <seecref="T:System.Text.Json.JsonDocument" /> has been disposed.</exception>
773
773
</Docs>
774
774
</Member>
@@ -1372,4 +1372,4 @@ This method does not parse the contents of a JSON string value.
0 commit comments