NSJsonSerialization.Serialize Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| Serialize(NSObject, NSJsonWritingOptions, NSError) | |
| Serialize(NSObject, NSOutputStream, NSJsonWritingOptions, NSError) |
Serialize(NSObject, NSJsonWritingOptions, NSError)
[Foundation.Export("dataWithJSONObject:options:error:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static Foundation.NSData Serialize(Foundation.NSObject obj, Foundation.NSJsonWritingOptions opt, out Foundation.NSError error);
[<Foundation.Export("dataWithJSONObject:options:error:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Serialize : Foundation.NSObject * Foundation.NSJsonWritingOptions * NSError -> Foundation.NSData
Parameters
- obj
- NSObject
- error
- NSError
Returns
- Attributes
Applies to
Serialize(NSObject, NSOutputStream, NSJsonWritingOptions, NSError)
[Foundation.Export("writeJSONObject:toStream:options:error:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static IntPtr Serialize(Foundation.NSObject obj, Foundation.NSOutputStream stream, Foundation.NSJsonWritingOptions opt, out Foundation.NSError error);
[<Foundation.Export("writeJSONObject:toStream:options:error:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Serialize : Foundation.NSObject * Foundation.NSOutputStream * Foundation.NSJsonWritingOptions * NSError -> nativeint
Parameters
- obj
- NSObject
- stream
- NSOutputStream
- error
- NSError
Returns
IntPtr
nativeint
- Attributes