IVsStatusbar.GetText Method
Retrieves the current status bar text.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'宣告
Function GetText ( _
<OutAttribute> ByRef pszText As String _
) As Integer
'用途
Dim instance As IVsStatusbar
Dim pszText As String
Dim returnValue As Integer
returnValue = instance.GetText(pszText)
int GetText(
out string pszText
)
int GetText(
[OutAttribute] String^% pszText
)
abstract GetText :
pszText:string byref -> int
function GetText(
pszText : String
) : int
Parameters
- pszText
Type: System.String%
[out] Current status bar text.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From vsshell.idl:
HRESULT IVsStatusbar::GetText(
[out]BSTR *pszText
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.