取得狀態列的擁有權。
命名空間: Microsoft.VisualStudio.Data.Schema.Package.UI
組件: Microsoft.VisualStudio.Data.Schema.Package (在 Microsoft.VisualStudio.Data.Schema.Package.dll 中)
語法
'宣告
Public Function TakeOwnership ( _
proposedOwner As SharedStatusBarOwner _
) As Boolean
public bool TakeOwnership(
SharedStatusBarOwner proposedOwner
)
public:
virtual bool TakeOwnership(
SharedStatusBarOwner^ proposedOwner
) sealed
abstract TakeOwnership :
proposedOwner:SharedStatusBarOwner -> bool
override TakeOwnership :
proposedOwner:SharedStatusBarOwner -> bool
public final function TakeOwnership(
proposedOwner : SharedStatusBarOwner
) : boolean
參數
- proposedOwner
型別:Microsoft.VisualStudio.Data.Schema.Package.UI.SharedStatusBarOwner
提議的狀態列擁有者。
傳回值
型別:System.Boolean
如果已取得擁有權則為 true,如果由另一個物件擁有狀態列則為 false。
實作
ISharedStatusBar.TakeOwnership(SharedStatusBarOwner)
備註
如果 proposedOwner 已成為實際擁有者,則傳回 true。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。