JsonPrimitive 类

定义

public ref class JsonPrimitive : System::Json::JsonValue
public class JsonPrimitive : System.Json.JsonValue
type JsonPrimitive = class
    inherit JsonValue
Public Class JsonPrimitive
Inherits JsonValue
继承
JsonPrimitive

注解

注意

命名空间 System.Json 是为不再受支持的 Silverlight 设计的。 若要处理 JSON,建议改用 命名空间中的 System.Text.Json API。

构造函数

JsonPrimitive(Boolean)
JsonPrimitive(Byte)
JsonPrimitive(Char)
JsonPrimitive(DateTime)
JsonPrimitive(DateTimeOffset)
JsonPrimitive(Decimal)
JsonPrimitive(Double)
JsonPrimitive(Guid)
JsonPrimitive(Int16)
JsonPrimitive(Int32)
JsonPrimitive(Int64)
JsonPrimitive(SByte)
JsonPrimitive(Single)
JsonPrimitive(String)
JsonPrimitive(TimeSpan)
JsonPrimitive(UInt16)
JsonPrimitive(UInt32)
JsonPrimitive(UInt64)
JsonPrimitive(Uri)

属性

Count (继承自 JsonValue)
Item[Int32] (继承自 JsonValue)
Item[String] (继承自 JsonValue)
JsonType

方法

ContainsKey(String) (继承自 JsonValue)
Equals(Object)

确定指定对象是否等于当前对象。

(继承自 Object)
GetHashCode()

作为默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。

(继承自 Object)
Save(Stream)
Save(TextWriter) (继承自 JsonValue)
ToString() (继承自 JsonValue)

显式接口实现

IEnumerable.GetEnumerator()

返回循环访问集合的枚举数。

(继承自 JsonValue)

适用于