ILockingPolicy.RefineLocks Method

Definition

Overloads

RefineLocks(ModelElement, Locks)

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

RefineLocks(Partition, Locks)

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

RefineLocks(Store, Locks)

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

RefineLocks(ModelElement, Locks)

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

public:
 Microsoft::VisualStudio::Modeling::Immutability::Locks RefineLocks(Microsoft::VisualStudio::Modeling::ModelElement ^ element, Microsoft::VisualStudio::Modeling::Immutability::Locks proposedLocks);
public Microsoft.VisualStudio.Modeling.Immutability.Locks RefineLocks (Microsoft.VisualStudio.Modeling.ModelElement element, Microsoft.VisualStudio.Modeling.Immutability.Locks proposedLocks);
abstract member RefineLocks : Microsoft.VisualStudio.Modeling.ModelElement * Microsoft.VisualStudio.Modeling.Immutability.Locks -> Microsoft.VisualStudio.Modeling.Immutability.Locks
Public Function RefineLocks (element As ModelElement, proposedLocks As Locks) As Locks

Parameters

element
ModelElement
proposedLocks
Locks

The new set of element Locks requested through ModelElement.SetLocks

Returns

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.

Applies to

RefineLocks(Partition, Locks)

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

public:
 Microsoft::VisualStudio::Modeling::Immutability::Locks RefineLocks(Microsoft::VisualStudio::Modeling::Partition ^ partition, Microsoft::VisualStudio::Modeling::Immutability::Locks proposedLocks);
public Microsoft.VisualStudio.Modeling.Immutability.Locks RefineLocks (Microsoft.VisualStudio.Modeling.Partition partition, Microsoft.VisualStudio.Modeling.Immutability.Locks proposedLocks);
abstract member RefineLocks : Microsoft.VisualStudio.Modeling.Partition * Microsoft.VisualStudio.Modeling.Immutability.Locks -> Microsoft.VisualStudio.Modeling.Immutability.Locks
Public Function RefineLocks (partition As Partition, proposedLocks As Locks) As Locks

Parameters

partition
Partition

The Partition whose lock flags are being manipulated

proposedLocks
Locks

The new set of partition Locks requested through Partition.SetLocks

Returns

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 Partition 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 partitions it does not own.

Applies to

RefineLocks(Store, Locks)

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

public:
 Microsoft::VisualStudio::Modeling::Immutability::Locks RefineLocks(Microsoft::VisualStudio::Modeling::Store ^ store, Microsoft::VisualStudio::Modeling::Immutability::Locks proposedLocks);
public Microsoft.VisualStudio.Modeling.Immutability.Locks RefineLocks (Microsoft.VisualStudio.Modeling.Store store, Microsoft.VisualStudio.Modeling.Immutability.Locks proposedLocks);
abstract member RefineLocks : Microsoft.VisualStudio.Modeling.Store * Microsoft.VisualStudio.Modeling.Immutability.Locks -> Microsoft.VisualStudio.Modeling.Immutability.Locks
Public Function RefineLocks (store As Store, proposedLocks As Locks) As Locks

Parameters

store
Store

The Store whose lock flags are being manipulated

proposedLocks
Locks

The new set of store Locks requested through Store.SetLocks

Returns

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 Store through the Immutability API. It allows the owner of the Store to apply policy in deciding what locks can be applied or removed.

Applies to