Returns an NSData object containing a given property list in a specified format.
Original signature is '+ (NSData *)dataFromPropertyList:(id)plist format:(NSPropertyListFormat)format errorDescription:(NSString **)errorString'
Available in Mac OS X v10.2 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public static NSData DataFromPropertyListFormatErrorDescription( Id plist, NSPropertyListFormat format, out NSString errorString )
Public Shared Function DataFromPropertyListFormatErrorDescription ( _ plist As Id, _ format As NSPropertyListFormat, _ <OutAttribute> ByRef errorString As NSString _ ) As NSData
public: static NSData^ DataFromPropertyListFormatErrorDescription( Id^ plist, NSPropertyListFormat format, [OutAttribute] NSString^% errorString )
Parameters
- plist (Id)
- A property list object. plist must be a kind of NSData, NSString, NSNumber, NSDate, NSArray, or NSDictionary object. Container objects must also contain only these kinds of objects.
- format (NSPropertyListFormat)
- A property list format. Possible values for format are described in NSPropertyListFormat.
- errorString (NSString%)
- Upon return, if the conversion is successful, errorString is nil. If the conversion fails, upon return contains a string describing the nature of the error. If you receive a string, you must release it.
Return Value
An NSData object containing plist in the format specified by format.
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)