共用方式為


ISharedStatusBar.TakeOwnership 方法

取得狀態列的擁有權。

命名空間:  Microsoft.VisualStudio.Data.Schema.Package.UI
組件:  Microsoft.VisualStudio.Data.Schema.Package (在 Microsoft.VisualStudio.Data.Schema.Package.dll 中)

語法

'宣告
Function TakeOwnership ( _
    proposedOwner As SharedStatusBarOwner _
) As Boolean
bool TakeOwnership(
    SharedStatusBarOwner proposedOwner
)
bool TakeOwnership(
    SharedStatusBarOwner^ proposedOwner
)
abstract TakeOwnership : 
        proposedOwner:SharedStatusBarOwner -> bool 
function TakeOwnership(
    proposedOwner : SharedStatusBarOwner
) : boolean

參數

傳回值

型別:System.Boolean
如果取得擁有權則為 true。

備註

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

.NET Framework 安全性

請參閱

參考

ISharedStatusBar 介面

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