Share via


TaskLauncher.SetErrorMessage Method

Applies to: SharePoint Foundation 2010

Adds an error message to an indexed table of error messages.

SetErrorMessage(
                int nIndex,
                string bstrErrorMessage
               )

Parameters

nIndex

Type: Int32

The index of the message that you are setting. The value must be greater than 3. (The first four messages are reserved.)

bstrErrorMessage

Type: String

The text of the error message.

Return Value

None