NSJsonSerialization.Serialize 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Serialize(NSObject, NSJsonWritingOptions, NSError) | |
Serialize(NSObject, NSOutputStream, NSJsonWritingOptions, NSError) |
Serialize(NSObject, NSJsonWritingOptions, NSError)
[Foundation.Export("dataWithJSONObject:options:error:")]
public static Foundation.NSData Serialize (Foundation.NSObject obj, Foundation.NSJsonWritingOptions opt, out Foundation.NSError error);
static member Serialize : Foundation.NSObject * Foundation.NSJsonWritingOptions * -> Foundation.NSData
參數
- obj
- NSObject
- error
- NSError
傳回
- 屬性
適用於
Serialize(NSObject, NSOutputStream, NSJsonWritingOptions, NSError)
[Foundation.Export("writeJSONObject:toStream:options:error:")]
public static nint Serialize (Foundation.NSObject obj, Foundation.NSOutputStream stream, Foundation.NSJsonWritingOptions opt, out Foundation.NSError error);
static member Serialize : Foundation.NSObject * Foundation.NSOutputStream * Foundation.NSJsonWritingOptions * -> nint
參數
- obj
- NSObject
- stream
- NSOutputStream
- error
- NSError
傳回
System.System.IntPtr
System.nativeint
- 屬性