ResultSnippet.AddError Method

Applies To: Windows 8.1

Creates an ErrorWarning error object for use by the ResultSnippet object.

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

'Usage
Dim instance As ResultSnippet
Dim hresult As UInteger
Dim message As String
Dim returnValue As ErrorWarning

returnValue = instance.AddError(hresult, message)

public ErrorWarning AddError (
	uint hresult,
	string message
)
public ErrorWarning AddError (
	UInt32 hresult, 
	String message
)
public function AddError (
	hresult : uint, 
	message : String
) : ErrorWarning

Parameters

hresult

The HRESULT value associated with the new error.

message

The message text.

Return Value

Returns ErrorWarning.

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: