ImmutabilityExtensionMethods.SetLocks 方法

定義

多載

SetLocks(ModelElement, Locks)

設定此元素的鎖定旗標

SetLocks(Partition, Locks)

設定指定之資料分割實例的鎖定旗標

SetLocks(Store, Locks)

設定此存放區實例的鎖定旗標

SetLocks(ModelElement, Locks)

設定此元素的鎖定旗標

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)

參數

element
ModelElement

要設定其鎖定旗標的元素

locks
Locks

要在元素上啟用的新鎖定旗標集

適用於

SetLocks(Partition, Locks)

設定指定之資料分割實例的鎖定旗標

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)

參數

partition
Partition

要設定其鎖定旗標的資料分割實例

locks
Locks

要在磁碟分割上啟用的新鎖定旗標集

適用於

SetLocks(Store, Locks)

設定此存放區實例的鎖定旗標

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)

參數

store
Store

要設定其鎖定旗標的存放區實例

locks
Locks

要在存放區上啟用的新鎖定旗標集

適用於