ImmutabilityExtensionMethods.GetLocks Method (ModelElement)
Get the lock flags for this element. This will include any locks enabled on the Partition containing the element.
Namespace: Microsoft.VisualStudio.Modeling.Immutability
Assembly: Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
'Declaration
<ExtensionAttribute> _
Public Shared Function GetLocks ( _
element As ModelElement _
) As Locks
public static Locks GetLocks(
this ModelElement element
)
[ExtensionAttribute]
public:
static Locks GetLocks(
ModelElement^ element
)
static member GetLocks :
element:ModelElement -> Locks
public static function GetLocks(
element : ModelElement
) : Locks
element
Type: Microsoft.VisualStudio.Modeling.ModelElementThe element whose lock flags are to be queried
Type: Microsoft.VisualStudio.Modeling.Immutability.Locks
Lock flags enabled on the element
In Visual Basic and C#, you can call this method as an instance method on any object of type ModelElement. 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).
- 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.