次の方法で共有


SetPowerState method of the CIM_LogicalPort class

This method is deprecated. Instead we recommend that you use the SetPowerState property of the CIM_PowerManagementService class.

Deprecated description: Sets the power state of the logical device.

This method is inherited from CIM_LogicalDevice.

Syntax

uint32 SetPowerState(
  [in] uint16   PowerState,
  [in] datetime Time
);

Parameters

PowerState [in]

The power state to set.

The possible values are.

1

Full Power

2

Power Save - Low Power Mode

3

Power Save - Standby

4

Power Save - Other

5

Power Cycle

6

Power Off

Time [in]

Indicates when to set the power state, either as a regular datetime value or as an interval value (where the interval begins when the method invocation is received).

Return value

The possible return values are.

0

The operation completed successfully.

1

The operation was not completed because it is not supported.

2 = value

The operation was not completed because an error occurred.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2016
Namespace
Root\HyperVCluster\v2
MOF
WindowsHyperVCluster.V2.mof
DLL
VMMS.exe

See also

CIM_LogicalPort