Iasphelp::get_MibErrorDscp method
The MibErrorDscp property enables an ASP Web page to convert a Simple Network Management Protocol (SNMP) management information base (MIB) error code into a text description of the error.
Syntax
HRESULT get_MibErrorDscp(
[in] DWORD dwError,
[out] BSTR *pVal
);
Parameters
dwError [in]
Caller-supplied SNMP MIB error code.
pVal [out]
Caller-supplied location to receive a pointer to a string containing a text description of the error.
Return value
Win32 error codes can also be returned.
Return code | Description |
---|---|
S_OK | The operation succeeded. |
E_POINTER | Invalid pVal pointer. |
E_OUTOFMEMORY | Out of memory. |
VBScript Example
Dim objPrinter, MIBErrorCode, MIBErrorString
Set objPrinter = Server.CreateObject ("OlePrn.AspHelp")
...
' Get error code from MIB.
...
MIBErrorString = objPrinter.MibErrorDscp(ErrorCodeMIB)
Requirements
Target platform: Desktop