MonitoringPerformanceData.GetValues(DateTime, DateTime) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets all the values for this performance data instance between the selected range, inclusive.
public:
System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Monitoring::MonitoringPerformanceDataValue ^> ^ GetValues(DateTime startRange, DateTime endRange);
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringPerformanceDataValue> GetValues (DateTime startRange, DateTime endRange);
member this.GetValues : DateTime * DateTime -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringPerformanceDataValue>
Public Function GetValues (startRange As DateTime, endRange As DateTime) As ReadOnlyCollection(Of MonitoringPerformanceDataValue)
Parameters
- startRange
- DateTime
The start of the range.
- endRange
- DateTime
The end of the range.
Returns
A collection of MonitoringPerformanceDataValue objects.
Exceptions
startRange is greater than endRange, or startRange is less than the SQL minimum datetime, Jan 1, 1753