Compartilhar via


ThreadingTools.ApplyChangeOptimistically<T> Method

Namespace:  Microsoft.VisualStudio.Threading
Assembly:  Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)

Syntax

'Declaration
Public Shared Function ApplyChangeOptimistically(Of T As Class) ( _
    ByRef hotLocation As T, _
    applyChange As Func(Of T, T) _
) As Boolean
public static bool ApplyChangeOptimistically<T>(
    ref T hotLocation,
    Func<T, T> applyChange
)
where T : class
public:
generic<typename T>
where T : ref class 
static bool ApplyChangeOptimistically(
    T% hotLocation, 
    Func<T, T>^ applyChange
)
static member ApplyChangeOptimistically : 
        hotLocation:'T byref * 
        applyChange:Func<'T, 'T> -> bool   when 'T : not struct
JScript does not support generic types or methods.

Type Parameters

  • T

Parameters

  • hotLocation
    Type: T%

Return Value

Type: System.Boolean

.NET Framework Security

See Also

Reference

ThreadingTools Class

Microsoft.VisualStudio.Threading Namespace