共用方式為


ImmutabilityExtensionMethods.SetLocks Method

Definition

Overloads

SetLocks(ModelElement, Locks)

Set the lock flags of this element

SetLocks(Partition, Locks)

Set the lock flags of the specified Partition instance

SetLocks(Store, Locks)

Set the lock flags of this Store instance

SetLocks(ModelElement, Locks)

Set the lock flags of this element

public:
[System::Runtime::CompilerServices::Extension]
 static void SetLocks(Microsoft::VisualStudio::Modeling::ModelElement ^ element, Microsoft::VisualStudio::Modeling::Immutability::Locks locks);
public static void SetLocks (this Microsoft.VisualStudio.Modeling.ModelElement element, Microsoft.VisualStudio.Modeling.Immutability.Locks locks);
static member SetLocks : Microsoft.VisualStudio.Modeling.ModelElement * Microsoft.VisualStudio.Modeling.Immutability.Locks -> unit
<Extension()>
Public Sub SetLocks (element As ModelElement, locks As Locks)

Parameters

element
ModelElement

The element whose lock flags are to be set

locks
Locks

New set of lock flags to be enabled on the element

Applies to

SetLocks(Partition, Locks)

Set the lock flags of the specified Partition instance

public:
[System::Runtime::CompilerServices::Extension]
 static void SetLocks(Microsoft::VisualStudio::Modeling::Partition ^ partition, Microsoft::VisualStudio::Modeling::Immutability::Locks locks);
public static void SetLocks (this Microsoft.VisualStudio.Modeling.Partition partition, Microsoft.VisualStudio.Modeling.Immutability.Locks locks);
static member SetLocks : Microsoft.VisualStudio.Modeling.Partition * Microsoft.VisualStudio.Modeling.Immutability.Locks -> unit
<Extension()>
Public Sub SetLocks (partition As Partition, locks As Locks)

Parameters

partition
Partition

The Partition instance whose lock flags are to be set

locks
Locks

New set of lock flags to be enabled on the partition

Applies to

SetLocks(Store, Locks)

Set the lock flags of this Store instance

public:
[System::Runtime::CompilerServices::Extension]
 static void SetLocks(Microsoft::VisualStudio::Modeling::Store ^ store, Microsoft::VisualStudio::Modeling::Immutability::Locks locks);
public static void SetLocks (this Microsoft.VisualStudio.Modeling.Store store, Microsoft.VisualStudio.Modeling.Immutability.Locks locks);
static member SetLocks : Microsoft.VisualStudio.Modeling.Store * Microsoft.VisualStudio.Modeling.Immutability.Locks -> unit
<Extension()>
Public Sub SetLocks (store As Store, locks As Locks)

Parameters

store
Store

The Store instance whose lock flags are to be set

locks
Locks

New set of lock flags to be enabled on the store

Applies to