Creates a temporary instance of NSArchiver and archives an object graph by encoding it into a data object and writing the resulting data object to a specified file.
Original signature is '+ (BOOL)archiveRootObject:(id)rootObject toFile:(NSString *)path'
Available in Mac OS X v10.0 and later.

Declaration Syntax
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 object of the object graph to archive.
- path (NSString)
- The location of the the file into which to write the archive.

Return Value
YES if the archive was written successfully, 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)