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
'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)
Syntax
'Declaration
Public Function AddItem ( _
issueType As IssueType, _
hresult As Integer, _
message As String _
) As ErrorWarning
public ErrorWarning AddItem (
IssueType issueType,
int hresult,
string 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.
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