次の方法で共有


CreateSetting method of the MSISCSITARGET_StorageCapabilities class

Creates and populates a MSISCSITARGET_StorageSetting instance from a MSISCSITARGET_StorageCapabilities instance. If the underlying instrumentation supports the CIM_StorageSettingWithHints subclass, then an instance of that class is created instead.

This method is inherited from the CIM_StorageCapabilities class.

Syntax

uint32 CreateSetting(
  [in]  uint16                 SettingType,
  [out] CIM_StorageSetting Ref NewSetting
);

Parameters

SettingType [in]

Indicates the source to use for the property values of the new MSISCSITARGET_StorageSetting instance.

Default (2)

Indicates the property values are set to the default values of the parent MSISCSITARGET_StorageCapabilities instance.

Goal (3)

Indicates the property values are set to the related values of the parent MSISCSITARGET_StorageCapabilities instance. For example, the MSISCSITARGET_StorageCapabilities.DataRedundancyMin, DataRedundancyMax, and DataRedundancyDefault property values are propagated to the MSISCSITARGET_StorageSetting.DataRedundancyMin, DataRedundancyMax, and DataRedundancyGoal properties respectively.

NewSetting [out]

On return, contains a reference to the created MSISCSITARGET_StorageSetting instance.

Return value

Success (0)

Not Supported (1)

Unspecified Error (2)

Timeout (3)

Failed (4)

Invalid Parameter (5)

DMTF Reserved (6 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_StorageCapabilities

MSISCSITARGET_StorageSetting