protected override ManagementObjectCollection QueryItems() { return(WqlHelper.QueryAll(WqlTableName.EthernetSwitchExtension, string.Format("{0} = '{1}' AND {2} = {3}", WqlColumnNames.ElementName, OvsExtentionName, WqlColumnNames.EnabledState, (int)EnabledState.Enabled), new string[] { WqlColumnNames.SystemName })); }
protected override ManagementObjectCollection QueryItems() { return(WqlHelper.QueryAll(WqlTableName.EthernetPortAllocationSettingData, string.Format("{0} = '{1}' AND {2} = {3}", WqlColumnNames.Caption, VirtualAdapterCaption, WqlColumnNames.EnabledState, (int)EnabledState.Enabled), new string[] { WqlColumnNames.ElementName, WqlColumnNames.InstanceID, WqlColumnNames.HostResource })); }