次の方法で共有


DetachDevice method of the MSISCSITARGET_ControllerConfigurationService class

Removes the CIM_ProtocolControllerForDevice instance association between the specified CIM_ProtocolController and CIM_LogicalDevice instances.

This method is inherited from the CIM_ControllerConfigurationService class.

Syntax

uint32 DetachDevice(
  [in] CIM_ProtocolController Ref ProtocolController,
  [in] CIM_LogicalDevice Ref      Device
);

Parameters

ProtocolController [in]

Specifies the antecedent protocol controller instance.

Note

When the CIM_ProtocolController instance is actively masking a device, that is, it is part of a CIM_AuthorizedTarget association, the management instrumentation provider should update the hardware access configuration when this method is called.

Device [in]

Specifies the logical device instance to detach.

Return value

This method returns one of the following values.

Success (0)

Not Supported (1)

Unspecified Error (2)

Timeout (3)

Failed (4)

Invalid Parameter (5)

DMTF Reserved (6 4095)

LogicalDevice Instance not Associated with Controller (4096)

Busy (4097)

Method Reserved (4098 32767)

Vendor Specific (32768 65535)

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_ControllerConfigurationService

CIM_ProtocolController

CIM_LogicalDevice