Logging.LogErrorCode Method (Int32, IFormatProvider, String, Object[])

Applies To: Windows 8.1

Logs an error code and custom message to AXE’s pre-configured ETW session.

Namespace: Microsoft.Assessments
Assembly: Microsoft.Assessments.Core (in Microsoft.Assessments.Core.dll)

Dim instance As Logging
Dim errorCode As Integer
Dim provider As IFormatProvider
Dim messageFormat As String
Dim messageArguments As Object()

instance.LogErrorCode(errorCode, provider, messageFormat, messageArguments)

public void LogErrorCode (
	int errorCode,
	IFormatProvider provider,
	string messageFormat,
	params Object[] messageArguments
public void LogErrorCode (
	int errorCode, 
	IFormatProvider provider, 
	String messageFormat, 
	Object[] messageArguments
public function LogErrorCode (
	errorCode : int, 
	provider : IFormatProvider, 
	messageFormat : String, 
	... messageArguments : Object[]



The HRESULT error code to log.


Provides a mechanism for retrieving an object to control formatting.


An optional string value that can be a FormatMessage format string used for formatting custom messages.


A variable argument list to be used with the messageFormat parameter.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows 8.1