ImmutabilityExtensionMethods.IsLocked Method

Definition

Overloads

IsLocked(ModelElement, Locks)

Test whether this element has any of a specified set of locks

IsLocked(Partition, Locks)

Test whether this partition has any of a specified set of locks

IsLocked(Store, Locks)

Test whether this store has any of a specified set of locks

IsLocked(ModelElement, Locks)

Test whether this element has any of a specified set of locks

C++
public:
[System::Runtime::CompilerServices::Extension]
 static bool IsLocked(Microsoft::VisualStudio::Modeling::ModelElement ^ element, Microsoft::VisualStudio::Modeling::Immutability::Locks locks);

Parameters

element
ModelElement

The element whose lock flags are to be tested

locks
Locks

Set of lock flags checked

Returns

Applies to

Visual Studio SDK 2022 and other versions
Product Versions
Visual Studio SDK 2017, 2019, 2022

IsLocked(Partition, Locks)

Test whether this partition has any of a specified set of locks

C++
public:
[System::Runtime::CompilerServices::Extension]
 static bool IsLocked(Microsoft::VisualStudio::Modeling::Partition ^ partition, Microsoft::VisualStudio::Modeling::Immutability::Locks locks);

Parameters

partition
Partition

The Partition whose lock flags are to be tested

locks
Locks

Set of lock flags checked

Returns

Applies to

Visual Studio SDK 2022 and other versions
Product Versions
Visual Studio SDK 2017, 2019, 2022

IsLocked(Store, Locks)

Test whether this store has any of a specified set of locks

C++
public:
[System::Runtime::CompilerServices::Extension]
 static bool IsLocked(Microsoft::VisualStudio::Modeling::Store ^ store, Microsoft::VisualStudio::Modeling::Immutability::Locks locks);

Parameters

store
Store
locks
Locks

Set of lock flags checked

Returns

Applies to

Visual Studio SDK 2022 and other versions
Product Versions
Visual Studio SDK 2017, 2019, 2022