ImmutabilityExtensionMethods.SetLocks Method (ModelElement, Locks)

Set the lock flags of this element

Namespace:  Microsoft.VisualStudio.Modeling.Immutability
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)


<ExtensionAttribute> _
Public Shared Sub SetLocks ( _
    element As ModelElement, _
    locks As Locks _
public static void SetLocks(
    this ModelElement element,
    Locks locks
static void SetLocks(
    ModelElement^ element, 
    Locks locks
static member SetLocks : 
        element:ModelElement * 
        locks:Locks -> unit
public static function SetLocks(
    element : ModelElement, 
    locks : Locks


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

See Also


ImmutabilityExtensionMethods Class

SetLocks Overload

Microsoft.VisualStudio.Modeling.Immutability Namespace