TaskService/Native/EventLog.cs
/// <summary>Exports the log and messages.</summary>
/// <param name="path">The path.</param>
/// <param name="pathType">Type of the path.</param>
/// <param name="query">The query.</param>
/// <param name="targetFilePath">The target file path.</param>
/// <param name="tolerateQueryErrors">if set to <c>true</c> [tolerate query errors].</param>
/// <param name="targetCultureInfo">The target culture information.</param>
Exports the log and messages.
Exports the log and messages .
public void ExportLogAndMessages(string path, PathType pathType, string query, string targetFilePath, bool tolerateQueryErrors, CultureInfo targetCultureInfo)
		{
			if (targetCultureInfo == null)
			{
				targetCultureInfo = CultureInfo.CurrentCulture;
			}
			ExportLog(path, pathType, query, targetFilePath, tolerateQueryErrors);
			NativeWrapper.EvtArchiveExportedLog(Handle, targetFilePath, targetCultureInfo.LCID, 0);
		}
public void ExportLogAndMessages ( string path , PathType pathType , string query , string targetFilePath , bool tolerateQueryErrors , CultureInfo targetCultureInfo ) { if ( targetCultureInfo == null ) { targetCultureInfo = CultureInfo . CurrentCulture ; } ExportLog ( path , pathType , query , targetFilePath , tolerateQueryErrors ) ; NativeWrapper . EvtArchiveExportedLog ( Handle , targetFilePath , targetCultureInfo . LCID , 0 ) ; }
Exports the log and messages.
Exports the log and messages .
path
string
None
pathType
PathType
Type of the path.
Type of the path .
query
string
None
targetFilePath
string
The target file path.
The target file path .
tolerateQueryErrors
bool
if set to true
if set to true
targetCultureInfo
CultureInfo
The target culture information.
The target culture information .