共用方式為


SharedStatusBar.TakeOwnership 方法

取得狀態列的擁有權。

命名空間:  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

參數

傳回值

型別:System.Boolean
如果已取得擁有權則為 true,如果由另一個物件擁有狀態列則為 false。

實作

ISharedStatusBar.TakeOwnership(SharedStatusBarOwner)

備註

如果 proposedOwner 已成為實際擁有者,則傳回 true。

.NET Framework 安全性

請參閱

參考

SharedStatusBar 類別

Microsoft.VisualStudio.Data.Schema.Package.UI 命名空間