MonobjcMonobjc Documented Class Library
NSDistributedLock Constructor (aPath)
NamespacesMonobjc.FoundationNSDistributedLockNSDistributedLock(NSString)

Initializes an NSDistributedLock object to use as the lock the file-system entry specified by a given path.

Original signature is '- (id)initWithPath:(NSString *)aPath'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public NSDistributedLock(
	NSString aPath
)
Public Sub New ( _
	aPath As NSString _
)
public:
NSDistributedLock(
	NSString^ aPath
)
Parameters
aPath (NSString)
All of aPath up to the last component itself must exist. You can use NSFileManager to create (and set permissions) for any nonexistent intermediate directories.
Return Value
An NSDistributedLock object initialized to use as the locking object the file-system entry specified by aPath.
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)