ImmutabilityExtensionMethods.IsLocked Method (ModelElement, Locks)
Test whether this element has any of a specified set of locks
Namespace: Microsoft.VisualStudio.Modeling.Immutability
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
‘선언
<ExtensionAttribute> _
Public Shared Function IsLocked ( _
element As ModelElement, _
locks As Locks _
) As Boolean
public static bool IsLocked(
this ModelElement element,
Locks locks
)
[ExtensionAttribute]
public:
static bool IsLocked(
ModelElement^ element,
Locks locks
)
static member IsLocked :
element:ModelElement *
locks:Locks -> bool
public static function IsLocked(
element : ModelElement,
locks : Locks
) : boolean
Parameters
- element
Type: Microsoft.VisualStudio.Modeling.ModelElement
The element whose lock flags are to be tested
- locks
Type: Microsoft.VisualStudio.Modeling.Immutability.Locks
Set of lock flags checked
Return Value
Type: System.Boolean
Usage Note
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).
.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.