MonobjcMonobjc Documented Class Library
DataOfTypeError Method (typeName, outError)
NamespacesMonobjc.AppKitNSDocumentDataOfTypeError(NSString, NSError%)

Creates and returns a data object that contains the contents of the document, formatted to a specified type.

Original signature is '- (NSData *)dataOfType:(NSString *)typeName error:(NSError **)outError'

Available in Mac OS X v10.4 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSData DataOfTypeError(
	NSString typeName,
	out NSError outError
)
Public Overridable Function DataOfTypeError ( _
	typeName As NSString, _
	<OutAttribute> ByRef outError As NSError _
) As NSData
public:
virtual NSData^ DataOfTypeError(
	NSString^ typeName, 
	[OutAttribute] NSError^% outError
)
Parameters
typeName (NSString)
The string that identifies the document type.
outError (NSError%)
On return, If the data object could not be created, a pointer to an error object that encapsulates the reason it could not be created.
Return Value
A data object containing the document contents, or, if the data object could not be created, nil.
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)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)