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
T Lock<T>(
    string key,
    Func<T> action
)
generic<typename T>
T Lock(
    String^ key,
    Func<T>^ action
)
abstract Lock<'T> : 
        key:string *
        action:Func<'T> -> 'T
Function Lock(Of T) (
    key As String,
    action As Func(Of T)
) As T
Parameters
- key
 Type: System.String
- action
 Type: System.Func<T>
Return Value
Type: T
Returns {0}.
Type Parameters
- T
See Also
Lock Overload
ILockProvider Interface
Microsoft.Xrm.Client.Threading Namespace
Return to top