PartialMonitoringObject.GetMaintenanceWindow 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 the current maintenance mode info.
public:
Microsoft::EnterpriseManagement::Monitoring::MaintenanceWindow ^ GetMaintenanceWindow();
public Microsoft.EnterpriseManagement.Monitoring.MaintenanceWindow GetMaintenanceWindow ();
member this.GetMaintenanceWindow : unit -> Microsoft.EnterpriseManagement.Monitoring.MaintenanceWindow
Public Function GetMaintenanceWindow () As MaintenanceWindow
Returns
Returns a MaintenanceWindow object.
Remarks
If the PartialMonitoringObjectobject is not in maintenance mode, an exception is thrown. See the ScheduleMaintenanceMode method for information about putting the PartialMonitoringObject object into maintenance mode.