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.
- grfFlags
Type: System.UInt32
[in] Bit flags indicating logging options. Use values from the LOGTOFILEOPTION enumeration..
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
- 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.