MonobjcMonobjc Documented Class Library
EnumeratorAtURLIncludingPropertiesForKeysOptionsErrorHandler Method (url, keys, mask, handler)
NamespacesMonobjc.FoundationNSFileManagerEnumeratorAtURLIncludingPropertiesForKeysOptionsErrorHandler(NSURL, NSArray, NSDirectoryEnumerationOptions, Func<(Of <<'(NSURL, NSError, Boolean>)>>))

Creates and returns a directory enumerator object that enumerates the contents of the directory at a given URL.

Original signature is '- (NSDirectoryEnumerator *)enumeratorAtURL:(NSURL *)url includingPropertiesForKeys:(NSArray *)keys options:(NSDirectoryEnumerationOptions)mask errorHandler:(BOOL (^)(NSURL *url, NSError *error))handler'

Available in Mac OS X v10.6 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSDirectoryEnumerator EnumeratorAtURLIncludingPropertiesForKeysOptionsErrorHandler(
	NSURL url,
	NSArray keys,
	NSDirectoryEnumerationOptions mask,
	Func<NSURL, NSError, bool> handler
)
Public Overridable Function EnumeratorAtURLIncludingPropertiesForKeysOptionsErrorHandler ( _
	url As NSURL, _
	keys As NSArray, _
	mask As NSDirectoryEnumerationOptions, _
	handler As Func(Of NSURL, NSError, Boolean) _
) As NSDirectoryEnumerator
public:
virtual NSDirectoryEnumerator^ EnumeratorAtURLIncludingPropertiesForKeysOptionsErrorHandler(
	NSURL^ url, 
	NSArray^ keys, 
	NSDirectoryEnumerationOptions mask, 
	Func<NSURL^, NSError^, bool>^ handler
)
Parameters
url (NSURL)
The location of the directory for which you want an enumeration.
keys (NSArray)
On input, an array of property keys for which you would like the corresponding values. Specify NULL for this array if you do not want any property values. The property keys that can be requested are listed in Common File System Resource Keys.
mask (NSDirectoryEnumerationOptions)
Options for the enumeration. See “Directory Enumeration Options.”
handler (Func<(Of <(<'NSURL, NSError, Boolean>)>)>)
The optional 'errorHandler' block argument is invoked when an error occurs. Parameters to the block are the URL on which an error occurred and the error. When the error handler returns YES, enumeration continues if possible. Enumeration stops immediately when the error handler returns NO.
Return Value
An NSDirectoryEnumerator object that enumerates the contents of the directory at url. If url is a symbolic link, this method evaluates the link and returns an enumerator for the file or directory the link points to. If the link cannot be evaluated, the method returns nil. If url is a filename, the method returns an enumerator object that enumerates no files—the first call to nextObject returns nil.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)