次の方法で共有


OnlineDevice method of the MSFTSMNET_EthernetPort class

Requests that the logical device be taken online or offline. Deprecated. Instead, use the RequestStateChange method.

Only a device that has been configured and enabled can be brought online or taken offline.

This method is inherited from the CIM_LogicalDevice class.

Syntax

uint32 OnlineDevice(
  [in] boolean Online
);

Parameters

Online [in]

Set to True to take the device online. Set to false to take the device offline.

Return value

0

Success.

1

The request is not supported.

1

The request is not supported due to the current state of the device

3 = value

Undefined error.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2012 R2
Namespace
Root\CIMv2\Storage\iScsiTarget
MOF
SmIscsiTarget.mof
DLL
SmIScsiTargetProv.dll

See also

MSFTSMNET_EthernetPort

RequestStateChange