Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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.
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.