Share via


ResultSnippet.AddWarning Method (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 message As String
Dim returnValue As ErrorWarning

returnValue = instance.AddWarning(message)

Syntax

'Declaration
Public Function AddWarning ( _
    message As String _
) As ErrorWarning
public ErrorWarning AddWarning (
    string message
)
public:
ErrorWarning^ AddWarning (
    String^ message
)
public ErrorWarning AddWarning (
    String message
)
public function AddWarning (
    message : String
) : ErrorWarning

Parameters

  • 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