共用方式為


NSPropertyListSerialization.DataWithPropertyList 方法

定義

多載

DataWithPropertyList(NSObject, NSPropertyListFormat, NSError)
DataWithPropertyList(NSObject, NSPropertyListFormat, NSPropertyListWriteOptions, NSError)

DataWithPropertyList(NSObject, NSPropertyListFormat, NSError)

public static Foundation.NSData DataWithPropertyList (Foundation.NSObject plist, Foundation.NSPropertyListFormat format, out Foundation.NSError error);
static member DataWithPropertyList : Foundation.NSObject * Foundation.NSPropertyListFormat *  -> Foundation.NSData

參數

plist
NSObject
error
NSError

傳回

適用於

DataWithPropertyList(NSObject, NSPropertyListFormat, NSPropertyListWriteOptions, NSError)

[Foundation.Export("dataWithPropertyList:format:options:error:")]
public static Foundation.NSData DataWithPropertyList (Foundation.NSObject plist, Foundation.NSPropertyListFormat format, Foundation.NSPropertyListWriteOptions options, out Foundation.NSError error);
static member DataWithPropertyList : Foundation.NSObject * Foundation.NSPropertyListFormat * Foundation.NSPropertyListWriteOptions *  -> Foundation.NSData

參數

plist
NSObject
error
NSError

傳回

屬性

適用於