다음을 통해 공유


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

‘선언
Function LogToFile ( _
    szLogFile As String, _
    grfFlags As UInteger _
) As Integer
‘사용 방법
Dim instance As IVsCommandWindow
Dim szLogFile As String
Dim grfFlags As UInteger
Dim returnValue As Integer

returnValue = instance.LogToFile(szLogFile, _
    grfFlags)
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

IVsCommandWindow Members

Microsoft.VisualStudio.Shell.Interop Namespace