MOM SDK ScriptContext.Sleep method should be documented in Milliseconds (Not Seconds)


The MOM 2005 SDK incorrectly documents the ScriptContext.Sleep method for temporarily pausing a script as seconds :


[VBScript] ScriptContext.Sleep(seconds As Long)


This is documented incorrectly. It should be


[VBScript] ScriptContext.Sleep(milliseconds As Long)


For example:


ScriptContext.Sleep (60000)  ‘This will pause for 1 minute.


The error in question is on http://msdn.microsoft.com/library/default.asp?url=/library/en-us/momsdk/HTM/R_Script/MOM_IEEMScriptContext.Sleep.asp


There are no plans to change the above link as it would then conflict with the content downloadable in the SDK (momsdk.chm),  which also documents this incorrectly.


A KB article documenting this issue will be forthcoming shortly.

Comments (0)