ImmutabilityExtensionMethods.GetLocks Method (Partition)
Get the lock flags for this Partition instance. This will include any locks enabled on the Store containing the partition.
Namespace: Microsoft.VisualStudio.Modeling.Immutability
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'Declaración
<ExtensionAttribute> _
Public Shared Function GetLocks ( _
partition As Partition _
) As Locks
public static Locks GetLocks(
this Partition partition
)
[ExtensionAttribute]
public:
static Locks GetLocks(
Partition^ partition
)
static member GetLocks :
partition:Partition -> Locks
public static function GetLocks(
partition : Partition
) : Locks
Parameters
- partition
Type: Microsoft.VisualStudio.Modeling.Partition
The Partition instance whose lock flags are to be queried
Return Value
Type: Microsoft.VisualStudio.Modeling.Immutability.Locks
Lock flags enabled on the partition
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type Partition. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
.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.