Share via


LockProvider.Lock<T> Method (String, Int32, Func<T>)

 

Applies To: Dynamics CRM 2015

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

Syntax

public virtual T Lock<T>(
    string key,
    int millisecondsTimeout,
    Func<T> action
)
public:
generic<typename T>
virtual T Lock(
    String^ key,
    int millisecondsTimeout,
    Func<T>^ action
)
abstract Lock<'T> : 
        key:string *
        millisecondsTimeout:int *
        action:Func<'T> -> 'T
override Lock<'T> : 
        key:string *
        millisecondsTimeout:int *
        action:Func<'T> -> 'T
Public Overridable Function Lock(Of T) (
    key As String,
    millisecondsTimeout As Integer,
    action As Func(Of T)
) As T

Parameters

Return Value

Type: T

Type: Int32.

Type Parameters

  • T

See Also

Lock Overload
LockProvider Class
Microsoft.Xrm.Client.Threading Namespace

Return to top

© 2017 Microsoft. All rights reserved. Copyright