Logging.LogDiscreteOperation Method

Applies To: Windows 8.1

Logs an event to the AXE engine’s pre-configured ETW session.

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

Usage

'Usage
Dim instance As Logging
Dim operationId As UInteger
Dim message As String
Dim blob As Byte()

instance.LogDiscreteOperation(operationId, message, blob)

Syntax

'Declaration
Public Sub LogDiscreteOperation ( _
    operationId As UInteger, _
    message As String, _
    blob As Byte() _
)
public void LogDiscreteOperation (
    uint operationId,
    string message,
    byte[] blob
)
public:
void LogDiscreteOperation (
    unsigned int operationId, 
    String^ message, 
    array<unsigned char>^ blob
)
public void LogDiscreteOperation (
    UInt32 operationId, 
    String message, 
    byte[] blob
)
public function LogDiscreteOperation (
    operationId : uint, 
    message : String, 
    blob : byte[]
)

Parameters

  • operationId
    A custom numerical identifier that identifies some operation expressed by the assessment.
  • message
    A UNICODE string to log with the begin operation event. This string may be empty. This string must not be longer than 1024 characters.
  • blob
    A custom byte stream to log to the ETW session.

Remarks

Calling this API logs the operationId, message and the blob to AXE’s ETW pre-configured session as the session’s LogBeginOperation event. Assessments should end the session with a call to LogEndOperation.

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