MonobjcMonobjc Documented Class Library
ArchiveRootObjectToFile Method (rootObject, path)
NamespacesMonobjc.FoundationNSKeyedArchiverArchiveRootObjectToFile(Id, NSString)

Archives an object graph rooted at a given object by encoding it into a data object then atomically writes the resulting data object to a file at a given path, and returns a Boolean value that indicates whether the operation was successful.

Original signature is '+ (BOOL)archiveRootObject:(id)rootObject toFile:(NSString *)path'

Available in Mac OS X v10.2 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static bool ArchiveRootObjectToFile(
	Id rootObject,
	NSString path
)
Public Shared Function ArchiveRootObjectToFile ( _
	rootObject As Id, _
	path As NSString _
) As Boolean
public:
static bool ArchiveRootObjectToFile(
	Id^ rootObject, 
	NSString^ path
)
Parameters
rootObject (Id)
The root of the object graph to archive.
path (NSString)
The path of the file in which to write the archive.
Return Value
YES if the operation was successful, otherwise NO.
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.Foundation (Module: Monobjc.Foundation)