Microsoft Operations Manager

GetError Method (INet)

The GetErrormethod gets the most recent error description for the INetobject.

[VBScript] INet.GetError()

Parameters

None

Return Value

String

Examples

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

[VBScript] 
Dim objINet
Dim strErrorMsg

Set objINet = CreateObject("OpScrUtil.INet")

If Not(objINet.GetHTTPFile("http://localhost")) Then
	strErrorMsg = "HTTP request failed. The error is " &
objINet.GetError()
End If

Set objINet = Nothing

Requirements

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

See Also

INet Object


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