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
'Usage
Dim instance As ResultSnippet
Dim hresult As UInteger
Dim message As String
Dim returnValue As ErrorWarning
returnValue = instance.AddError(hresult, message)
Syntax
'Declaration
Public Function AddError ( _
hresult As UInteger, _
message As String _
) As ErrorWarning
public ErrorWarning AddError (
uint hresult,
string message
)
public:
ErrorWarning^ AddError (
unsigned int 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.
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
ResultSnippet Class
ResultSnippet Members
Microsoft.Assessments.Runtime Namespace