PerfData.SourceDomain Property (Performance Data)
Gets or sets the domain name of the computer that is providing the performance data.
PerfData.SourceDomain
Access
Read/Write
Return Value
String
Remarks
The SourceDomain property is read-only when used with performance data provided to the script by MOM. The property is read/write when used with new performance data created with the ScriptContext.CreatePerfData method.
Examples
The following example shows how to create new performance data and set the SourceDomain property.
Function MakePerfDataFromEvent()
Dim objPerfData, objEvent
Set objPerfData = ScriptContext.CreatePerfData()
If (ScriptContext.IsEvent()) Then
Set objEvent = ScriptContext.Event
objPerfData.SourceDomain = objEvent.SourceDomain
objPerfData.SourceComputer = objEvent.SourceComputer
objPerfData.SampleUTCTime = objEvent.UTCTime
Else
Set objPerfData = Nothing
End If
Set objEvent = Nothing
Set MakePerfDataFromEvent = objPerfData
End Function
Requirements
Platforms: Requires Windows 2000 or later
Version: Requires MOM 2000 or later