Share via


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)

Usage

'Usage
Dim instance As Logging
Dim errorCode As Integer
Dim message As String

instance.LogErrorCode(errorCode, message)

Syntax

'Declaration
Public Sub LogErrorCode ( _
    errorCode As Integer, _
    message As String _
)
public void LogErrorCode (
    int errorCode,
    string message
)
public:
void LogErrorCode (
    int errorCode, 
    String^ message
)
public void LogErrorCode (
    int errorCode, 
    String message
)
public function LogErrorCode (
    errorCode : int, 
    message : String
)

Parameters

  • errorCode
    The HRESULT error code to log.
  • message
    An optional string value that can be a message to add to the logged output.

Thread Safety

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

Platforms

Development Platforms

Windows 8.1

See Also

Reference

Logging Class
Logging Members
Microsoft.Assessments Namespace