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
参数
- proposedOwner
类型:Microsoft.VisualStudio.Data.Schema.Package.UI.SharedStatusBarOwner
状态栏的建议所有者。
返回值
类型:System.Boolean
如果取得所有权,则为 true。
备注
如果 proposedOwner 成为实际所有者,则返回 true。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。