ArcFM Desktop Developer Guide
Create(Boolean,String,Boolean,MutexSecurity) 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 system 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.
A MutexSecurity object that represents the access control security to be applied to the named system mutex.
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, a Boolean variable that, when the method returns, indicates whether the calling thread was granted initial ownership of the mutex, and the access control security to be applied to the named mutex.
Syntax
'Declaration
 
Public Overloads Shared Function Create( _
   ByVal initiallyOwned As Boolean, _
   ByVal name As String, _
   ByRef createdNew As Boolean, _
   ByVal mutexSecurity As MutexSecurity _
) As Mutex
'Usage
 
Dim initiallyOwned As Boolean
Dim name As String
Dim createdNew As Boolean
Dim mutexSecurity As MutexSecurity
Dim value As Mutex
 
value = SessionMutexFactory.Create(initiallyOwned, name, createdNew, mutexSecurity)
public static Mutex Create( 
   bool initiallyOwned,
   string name,
   out bool createdNew,
   MutexSecurity mutexSecurity
)

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 system 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.
mutexSecurity
A MutexSecurity object that represents the access control security to be applied to the named system mutex.

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