ResultSnippet.AddWarning Method (UInt32, String)
Applies To: Windows 8.1
Creates an ErrorWarning 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.AddWarning(hresult, message)
Syntax
'Declaration
Public Function AddWarning ( _
hresult As UInteger, _
message As String _
) As ErrorWarning
public ErrorWarning AddWarning (
uint hresult,
string message
)
public:
ErrorWarning^ AddWarning (
unsigned int hresult,
String^ message
)
public ErrorWarning AddWarning (
UInt32 hresult,
String message
)
public function AddWarning (
hresult : uint,
message : String
) : ErrorWarning
Parameters
- hresult
The HRESULT value associated with the new ErrorWarning.
- 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