Share via


ErrorWarningCollection.AddItem Method (IssueType, 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

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

returnValue = instance.AddItem(issueType, message)

Syntax

'Declaration
Public Function AddItem ( _
    issueType As IssueType, _
    message As String _
) As ErrorWarning
public ErrorWarning AddItem (
    IssueType issueType,
    string message
)
public:
ErrorWarning^ AddItem (
    IssueType issueType, 
    String^ message
)
public ErrorWarning AddItem (
    IssueType issueType, 
    String message
)
public function AddItem (
    issueType : IssueType, 
    message : String
) : ErrorWarning

Parameters

  • issueType
    The type of the item being added.
  • message
    The text of the message for the item.

Return Value

Returns ErrorWarning.

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

ErrorWarningCollection Class
ErrorWarningCollection Members
Microsoft.Assessments.Runtime Namespace