ImmutabilityExtensionMethods.IsLocked 方法

定義

多載

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

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

參數

element
ModelElement

要測試其鎖定旗標的元素The element whose lock flags are to be tested

locks
Locks

已核取一組鎖定旗標Set of lock flags checked

傳回

Boolean

適用於

IsLocked(Partition, Locks)

測試此分割區是否有任何一組指定的鎖定Test whether this partition has any of a specified set of locks

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

參數

partition
Partition

要測試其鎖定旗標的資料分割The Partition whose lock flags are to be tested

locks
Locks

已核取一組鎖定旗標Set of lock flags checked

傳回

Boolean

適用於

IsLocked(Store, Locks)

測試此存放區是否有任何一組指定的鎖定Test whether this store has any of a specified set of locks

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

參數

store
Store
locks
Locks

已核取一組鎖定旗標Set of lock flags checked

傳回

Boolean

適用於