 | ThreadLooseTryLockNameGlobal method |
Attempts to lock an object internally assigned to the transferred name
and returns true if the block has worked.
The entry with the name and object is created beforehand if necessary.
Namespace: NetEti.GlobalsAssembly: NetEti.Global (in NetEti.Global.dll) Version: 1.0.0+ad672dc5430e1683eae7461ce3945c8e9dce1c49
Syntaxpublic static bool TryLockNameGlobal(
string name,
int waitMilliseconds
)
Public Shared Function TryLockNameGlobal (
name As String,
waitMilliseconds As Integer
) As Boolean
public:
static bool TryLockNameGlobal(
String^ name,
int waitMilliseconds
)
static member TryLockNameGlobal :
name : string *
waitMilliseconds : int -> bool
Parameters
- name String
- A name that is to be blocked globally via an assigned object.
- waitMilliseconds Int32
- Maximum number of milliseconds that should be maintained.
Return value
BooleanTrue if the lock has worked
See also