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.

Definition

Namespace: DevCase.Core.Application
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static Mutex CreateMutex(
	bool globalScope,
	string name,
	bool initiallyOwned
)

Parameters

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, .

Return Value

Mutex
The resulting Mutex object.

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

See Also