AddFeatureSettings method of the Msvm_VirtualSystemManagementService class

Adds feature settings to the configuration of an ethernet connection on a virtual machine.

Syntax

uint32 AddFeatureSettings(
  [in]  Msvm_EthernetPortAllocationSettingData    REF AffectedConfiguration,
  [in]  string                                        FeatureSettings[],
  [out] Msvm_EthernetSwitchPortFeatureSettingData REF ResultingFeatureSettings[],
  [out] CIM_ConcreteJob                           REF Job
);

Parameters

AffectedConfiguration [in]

A reference to the ethernet connection.

FeatureSettings [in]

An array that contains embedded instances the Msvm_EthernetSwitchPortFeatureSettingData class that describes the feature settings to add to the connection configuration.

ResultingFeatureSettings [out]

An array that contains references to the Msvm_EthernetSwitchPortFeatureSettingData instances that represent the added feature settings.

Job [out]

A reference to an optional job for the operation if the operation is run asynchronously.

If a job is used, the Msvm_EthernetSwitchPortFeatureSettingData instance that represents the added feature settings can be retrieved through the Msvm_EthernetPortSettingDataComponent instance that is associated with the Msvm_EthernetPortAllocationSettingData instance that represents the affected switch port.

Return value

The possible return values are:

Completed with No Error (0)

Not Supported (1)

Failed (2)

Timeout (3)

Invalid Parameter (4)

DMTF Reserved (5 4095)

Method Parameters Checked - Job Started (4096)

Method Reserved (4097 32767)

Vendor Specific (32768 65535)

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

Msvm_VirtualSystemManagementService