IVsCommandWindow.Print Method
Prints the specified text to the command window. The command window will be shown if it is not already visible.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
Function Print ( _
szTextToPrint As String _
) As Integer
int Print(
string szTextToPrint
)
int Print(
[InAttribute] String^ szTextToPrint
)
abstract Print :
szTextToPrint:string -> int
function Print(
szTextToPrint : String
) : int
Parameters
- szTextToPrint
Type: System.String
[in] String containing the text to print.
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 IVsCommandWindow::Print(
[in, ref] LPCOLESTR szTextToPrint
);
.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.