Microsoft Operations Manager

ID Property (Alert)

The IDproperty gets the globally unique identifier (GUID) of the alert.

[VBScript] Alert.ID

Access

Read-only

Return Value

String

Examples

The following example shows how to use GUIDs to check whether two alert objects represent the same alert.

[VBScript] 
Function AreAlertsIdentical(objAlert1, objAlert2)
	Dim blnIsIdentical
	Dim strGUID1, strGUID2

	blnIsIdentical = False

	strGUID1 = objAlert1.ID
	strGUID2 = objAlert2.ID
	
	If (strGUID1 = strGUID2) Then
		blnIsIdentical = True
	End If

	AreAlertsIdentical = blnIsIdentical 
End Function

Requirements

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

See Also

Alert Object


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