Свойство | Type | Description | |
---|---|---|---|
Instance |
Méthode | Description | |
---|---|---|
StartKeepAwakeFor ( object obj ) : void |
Adds the specified object to the set of objects that require that the system be kept awake and starts keeping the system awake if it was not already being kept awake.
|
|
StopKeepAwakeFor ( object obj ) : void |
Removes the specified object from the set of objects that require that the system be kept awake and stops keeping the system awake if it was being kept awake.
|
Méthode | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Disposes the manager.
|
Méthode | Description | |
---|---|---|
KeepAwakeManager ( ) : System.Collections.Generic |
Prevents a default instance of the KeepAwakeManager class from being created.
|
|
StartKeepAwake ( ) : void |
Start keeping the system awake. If the system is already being kept awake, this method does nothing.
|
|
StopKeepAwake ( ) : void |
Stops keeping the system awake. If the system is not being kept awake, this method does nothing.
|
|
UpdateKeepAwake ( ) : void |
Starts or stops keeping the system awake as required.
|
protected Dispose ( bool disposing ) : void | ||
disposing | bool | A value indicating whether this method was invoked by an explicit call to |
Résultat | void |
public StartKeepAwakeFor ( object obj ) : void | ||
obj | object | An |
Résultat | void |
public StopKeepAwakeFor ( object obj ) : void | ||
obj | object | An |
Résultat | void |