Logging.LogErrorCode Method (Int32, String)

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 message As String

instance.LogErrorCode(errorCode, message)

public void LogErrorCode (
	int errorCode,
	string message
public void LogErrorCode (
	int errorCode, 
	String message
public function LogErrorCode (
	errorCode : int, 
	message : String



The HRESULT error code to log.


An optional string value that can be a message to add to the logged output.

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