次の方法で共有


OnlineDevice method of the MSISCSITARGET_SCSIProtocolController 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 True to take the device online, false to take the device offline.

Return value

This method returns one of the following values.

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

MSISCSITARGET_SCSIProtocolController