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
Dim instance As Logging
Dim operationId As UInteger
Dim message As String
Dim blob As Byte()

instance.LogDiscreteOperation(operationId, message, blob)

public void LogDiscreteOperation (
	uint operationId,
	string message,
	byte[] 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.

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.


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

 

Show: