Share via


IVsCommandWindow.LogToFile Method

Starts logging command-window commands and output to the specified file.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Declaration
Function LogToFile ( _
    szLogFile As String, _
    grfFlags As UInteger _
) As Integer
int LogToFile(
    string szLogFile,
    uint grfFlags
)
int LogToFile(
    [InAttribute] String^ szLogFile, 
    [InAttribute] unsigned int grfFlags
)
abstract LogToFile : 
        szLogFile:string * 
        grfFlags:uint32 -> int
function LogToFile(
    szLogFile : String, 
    grfFlags : uint
) : int

Parameters

  • szLogFile
    Type: System.String

    [in] Filename to use for the log.

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::LogToFile(
   [in, ref] LPCOLESTR szLogFile, 
   [in] LOGTOFILEOPTIONS grfFlags
);

.NET Framework Security

See Also

Reference

IVsCommandWindow Interface

Microsoft.VisualStudio.Shell.Interop Namespace