ArcFM Desktop Developer Guide
Create(Boolean,String,Boolean) Method


true 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, false.
The name of the Mutex. If the value is null, the Mutex is unnamed.
When this method returns, contains a Boolean that is true if the calling thread was granted initial ownership of the mutex; otherwise, false. This parameter is passed uninitialized.
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, a string that is the name of the mutex, and a Boolean value that, when the method returns, indicates whether the calling thread was granted initial ownership of the mutex.
Syntax
'Declaration
 
Public Overloads Shared Function Create( _
   ByVal initiallyOwned As Boolean, _
   ByVal name As String, _
   ByRef createdNew As Boolean _
) As Mutex
'Usage
 
Dim initiallyOwned As Boolean
Dim name As String
Dim createdNew As Boolean
Dim value As Mutex
 
value = SessionMutexFactory.Create(initiallyOwned, name, createdNew)
public static Mutex Create( 
   bool initiallyOwned,
   string name,
   out bool createdNew
)

Parameters

initiallyOwned
true 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, false.
name
The name of the Mutex. If the value is null, the Mutex is unnamed.
createdNew
When this method returns, contains a Boolean that is true if the calling thread was granted initial ownership of the mutex; otherwise, false. This parameter is passed uninitialized.

Return Value

A named (per-session) mutex.
Requirements

Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)

Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.

See Also

Reference

SessionMutexFactory Class
SessionMutexFactory Members
Overload List

 

 


Send Comment