Compartilhar via


ImmutabilityExtensionMethods.SetLocks Method (Partition, Locks)

Set the lock flags of the specified Partition instance

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

Syntax

'Declaração
<ExtensionAttribute> _
Public Shared Sub SetLocks ( _
    partition As Partition, _
    locks As Locks _
)
public static void SetLocks(
    this Partition partition,
    Locks locks
)
[ExtensionAttribute]
public:
static void SetLocks(
    Partition^ partition, 
    Locks locks
)
static member SetLocks : 
        partition:Partition * 
        locks:Locks -> unit 
public static function SetLocks(
    partition : Partition, 
    locks : Locks
)

Parameters

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

See Also

Reference

ImmutabilityExtensionMethods Class

SetLocks Overload

Microsoft.VisualStudio.Modeling.Immutability Namespace