ILockingPolicy.RefineLocks Method (Partition, Locks)
Return the actual Locks that should be applied to the specified Partition 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 ( _
partition As Partition, _
proposedLocks As Locks _
) As Locks
Locks RefineLocks(
Partition partition,
Locks proposedLocks
)
Locks RefineLocks(
Partition^ partition,
Locks proposedLocks
)
abstract RefineLocks :
partition:Partition *
proposedLocks:Locks -> Locks
function RefineLocks(
partition : Partition,
proposedLocks : Locks
) : Locks
Parameters
- partition
Type: Microsoft.VisualStudio.Modeling.Partition
The Partition whose lock flags are being manipulated
- proposedLocks
Type: Microsoft.VisualStudio.Modeling.Immutability.Locks
The new set of partition Locks requested through Partition.SetLocks
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 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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.