Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies To: Dynamics CRM 2013
Namespace:   Microsoft.Xrm.Client.Threading
Assembly:  Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)
Syntax
public static T Lock<T>(
    string key,
    int millisecondsTimeout,
    Func<T> action
)
public:
generic<typename T>
static T Lock(
    String^ key,
    int millisecondsTimeout,
    Func<T>^ action
)
static member Lock<'T> : 
        key:string *
        millisecondsTimeout:int *
        action:Func<'T> -> 'T
Public Shared Function Lock(Of T) (
    key As String,
    millisecondsTimeout As Integer,
    action As Func(Of T)
) As T
Parameters
- key
 Type: System.String
- millisecondsTimeout
 Type: System.Int32
- action
 Type: System.Func<T>
Return Value
Type: T
Type: {0}.
Type Parameters
- T
See Also
Lock Overload
LockManager Class
Microsoft.Xrm.Client.Threading Namespace
Return to top