Microsoft Operations Manager

GetError Method (PagerJobQueue)

The GetErrormethod gets the most recent error for the PagerJobQueueobject.

[VBScript] PagerJobQueue.GetError()

Return Value

String

Examples

The following example shows how to get an error after a function fails.

[VBScript] 
Dim objPagerJobQueue
Dim strErrorMsg

Set objPagerJobQueue = CreateObject("OPScrUtil.PagerJobQueue")

If Not(objPagerJobQueue.ConfigureServices()) Then
	strErrorMsg = "Configure services failed. The error is " &
objPagerJobQueue.GetError()
End If

Set objPagerJobQueue = Nothing

Requirements

Windows NT/2000: Requires Windows 2000 or later
Version: Requires MOM 1.0 SP1

See Also

PagerJobQueue Object


Did you find this information useful? Please send your suggestions and comments about the documentation to momsdk@microsoft.com.