MonobjcMonobjc Documented Class Library
TypeOfFileError Method (absoluteFilePath, outError)
NamespacesMonobjc.AppKitNSWorkspaceTypeOfFileError(NSString, NSError%)

Returns the uniform type identifier of the specified file, if it can be determined..

Original signature is '- (NSString *)typeOfFile:(NSString *)absoluteFilePath error:(NSError **)outError'

Available in Mac OS X v10.5 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSString TypeOfFileError(
	NSString absoluteFilePath,
	out NSError outError
)
Public Overridable Function TypeOfFileError ( _
	absoluteFilePath As NSString, _
	<OutAttribute> ByRef outError As NSError _
) As NSString
public:
virtual NSString^ TypeOfFileError(
	NSString^ absoluteFilePath, 
	[OutAttribute] NSError^% outError
)
Parameters
absoluteFilePath (NSString)
The absolute path of the file.
outError (NSError%)
If the Uniform Type Identifier of the file at absolutePath can’t be determined, outError contains an NSError object that describes why.
Return Value
An NSString containing the uniform type identifier of the file at absoluteFilePath. If no UTI can be determined the return value is 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)