ImmutabilityExtensionMethods.GetLocks 方法

定義

多載

GetLocks(ModelElement)

取得此元素的鎖定旗標。Get the lock flags for this element. 這會包含在包含元素的資料分割上啟用的任何鎖定。This will include any locks enabled on the Partition containing the element.

GetLocks(Partition)

取得此資料分割實例的鎖定旗標。Get the lock flags for this Partition instance. 這會包含任何在包含分割區的存放區上啟用的鎖定。This will include any locks enabled on the Store containing the partition.

GetLocks(Store)

取得此存放區實例的鎖定旗標Get the lock flags for this Store instance

GetLocks(ModelElement)

取得此元素的鎖定旗標。Get the lock flags for this element. 這會包含在包含元素的資料分割上啟用的任何鎖定。This will include any locks enabled on the Partition containing the element.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::VisualStudio::Modeling::Immutability::Locks GetLocks(Microsoft::VisualStudio::Modeling::ModelElement ^ element);
public static Microsoft.VisualStudio.Modeling.Immutability.Locks GetLocks (this Microsoft.VisualStudio.Modeling.ModelElement element);
static member GetLocks : Microsoft.VisualStudio.Modeling.ModelElement -> Microsoft.VisualStudio.Modeling.Immutability.Locks
<Extension()>
Public Function GetLocks (element As ModelElement) As Locks

參數

element
ModelElement

要查詢其鎖定旗標的元素The element whose lock flags are to be queried

傳回

Locks

在元素上啟用鎖定旗標Lock flags enabled on the element

適用於

GetLocks(Partition)

取得此資料分割實例的鎖定旗標。Get the lock flags for this Partition instance. 這會包含任何在包含分割區的存放區上啟用的鎖定。This will include any locks enabled on the Store containing the partition.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::VisualStudio::Modeling::Immutability::Locks GetLocks(Microsoft::VisualStudio::Modeling::Partition ^ partition);
public static Microsoft.VisualStudio.Modeling.Immutability.Locks GetLocks (this Microsoft.VisualStudio.Modeling.Partition partition);
static member GetLocks : Microsoft.VisualStudio.Modeling.Partition -> Microsoft.VisualStudio.Modeling.Immutability.Locks
<Extension()>
Public Function GetLocks (partition As Partition) As Locks

參數

partition
Partition

要查詢其鎖定旗標的資料分割實例The Partition instance whose lock flags are to be queried

傳回

Locks

已在分割區上啟用鎖定旗標Lock flags enabled on the partition

適用於

GetLocks(Store)

取得此存放區實例的鎖定旗標Get the lock flags for this Store instance

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::VisualStudio::Modeling::Immutability::Locks GetLocks(Microsoft::VisualStudio::Modeling::Store ^ store);
public static Microsoft.VisualStudio.Modeling.Immutability.Locks GetLocks (this Microsoft.VisualStudio.Modeling.Store store);
static member GetLocks : Microsoft.VisualStudio.Modeling.Store -> Microsoft.VisualStudio.Modeling.Immutability.Locks
<Extension()>
Public Function GetLocks (store As Store) As Locks

參數

store
Store

要查詢其鎖定旗標的存放區實例The Store instance whose lock flags are to be queried

傳回

Locks

已在存放區上啟用鎖定旗標Lock flags enabled on the store

適用於