MonobjcMonobjc Documented Class Library
LockWithPath Method (aPath)
NamespacesMonobjc.FoundationNSDistributedLockLockWithPath(NSString)

Returns an NSDistributedLock object initialized to use as the locking object the file-system entry specified by a given path.

Original signature is '+ (NSDistributedLock *)lockWithPath:(NSString *)aPath'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSDistributedLock LockWithPath(
	NSString aPath
)
Public Shared Function LockWithPath ( _
	aPath As NSString _
) As NSDistributedLock
public:
static NSDistributedLock^ LockWithPath(
	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)