Compartir a través de


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: String

    [in] Filename to use for the log.

  • grfFlags
    Type: UInt32

    [in] Bit flags indicating logging options. Use values from the LOGTOFILEOPTION enumeration.

Return Value

Type: 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