MutexExtensions.Lock Method (String, Action)

Namespace: Microsoft.Xrm.Client.Threading
Assembly: Microsoft.Xrm.Client (in Microsoft.Xrm.Client)

Usage

'Usage
Dim key As String
Dim action As Action(Of Mutex)

MutexExtensions.Lock(key, action)

Syntax

'Declaration
Public Shared Sub Lock ( _
    key As String, _
    action As Action(Of Mutex) _
)
public static void Lock (
    string key,
    Action<Mutex> action
)
public:
static void Lock (
    String^ key, 
    Action<Mutex^>^ action
)
public static void Lock (
    String key, 
    Action<Mutex> action
)
public static function Lock (
    key : String, 
    action : Action<Mutex>
)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2008

Target Platforms

Windows Server 2008, Windows 7 (All Versions), Windows Vista (All Versions)

See Also

Reference

MutexExtensions Class
MutexExtensions Members
Microsoft.Xrm.Client.Threading Namespace

Send comments about this topic to Microsoft.
© 2011 Microsoft Corporation. All rights reserved.