次の方法で共有


ILockingPolicy.RefineLocks Method (ModelElement, Locks)

Return the actual Locks that should be applied to the specified ModelElement given a set of proposed Locks.

Namespace:  Microsoft.VisualStudio.Modeling.Immutability
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)

Syntax

'宣言
Function RefineLocks ( _
    element As ModelElement, _
    proposedLocks As Locks _
) As Locks
Locks RefineLocks(
    ModelElement element,
    Locks proposedLocks
)
Locks RefineLocks(
    ModelElement^ element, 
    Locks proposedLocks
)
abstract RefineLocks : 
        element:ModelElement * 
        proposedLocks:Locks -> Locks 
function RefineLocks(
    element : ModelElement, 
    proposedLocks : Locks
) : Locks

Parameters

Return Value

Type: Microsoft.VisualStudio.Modeling.Immutability.Locks
The actual set of locks to apply, which may include additional locks, or be a subset.

Remarks

This extension point is called when an attempt is made to apply locks to a ModelElement through the Immutability API. It allows the owner of the store to apply policy in deciding what locks can be applied or removed. Implementations may want to ignore lock refinements for elements they do not own.

.NET Framework Security

See Also

Reference

ILockingPolicy Interface

RefineLocks Overload

Microsoft.VisualStudio.Modeling.Immutability Namespace