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 命名空间