UtilApplicationCreateMutex(Boolean, String, Boolean) Method
Initializes a new instance of the
Mutex class with a
Boolean
value that indicates whether the calling thread should have initial ownership
of the
Mutex, and a
String that is the name of the mutex.
Namespace: DevCase.Core.ApplicationAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
static member CreateMutex :
globalScope : bool *
name : string *
initiallyOwned : bool -> Mutex
No code example is currently available or this language may not be supported.
- globalScope Boolean
-
Indicates the visibility scope for the Mutex object to be created.
If , The mutex is visible in all terminal server sessions,
otherwise, The mutex is visible only in the terminal server session where it was created.
- name String
-
The name of the system mutex.
If the value is , the Mutex is unnamed.
- initiallyOwned Boolean
- to give the calling thread initial ownership of the named system mutex if
the named system mutex is created as a result of this call; otherwise, .
Mutex
The resulting
Mutex object.
This is a code example.
No code example is currently available or this language may not be supported.
Dim mutexName As String = Guid.NewGuid().ToString()
Dim initiallyOwned As Boolean = True
Dim mutex As Mutex = CreateMutex(True, mutexName, initiallyOwned)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.