ErrorWarningCollection.AddItem Method (IssueType, Int32, String)

Applies To: Windows 8.1

Adds an ErrorWarning item to the collection.

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

'Usage
Dim instance As ErrorWarningCollection
Dim issueType As IssueType
Dim hresult As Integer
Dim message As String
Dim returnValue As ErrorWarning

returnValue = instance.AddItem(issueType, hresult, message)

public ErrorWarning AddItem (
	IssueType issueType,
	int hresult,
	string message
)
public ErrorWarning AddItem (
	IssueType issueType, 
	int hresult, 
	String message
)
public function AddItem (
	issueType : IssueType, 
	hresult : int, 
	message : String
) : ErrorWarning

Parameters

issueType

The type of the item being added.

hresult

The HRESULT value associated with the item.

message

The text of the message for the item.

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: