Delen via


SharedStatusBar.TakeOwnership Method

Takes ownership of the status bar.

Namespace:  Microsoft.VisualStudio.Data.Schema.Package.UI
Assembly:  Microsoft.VisualStudio.Data.Schema.Package (in Microsoft.VisualStudio.Data.Schema.Package.dll)

Syntax

'Declaration
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

Parameters

Return Value

Type: System.Boolean
true if ownership was taken; false if another object owns the status bar.

Implements

ISharedStatusBar.TakeOwnership(SharedStatusBarOwner)

Remarks

Returns true if the proposedOwner was made the actual owner.

.NET Framework Security

See Also

Reference

SharedStatusBar Class

Microsoft.VisualStudio.Data.Schema.Package.UI Namespace