DeletePoolHelper( ManagementScope scope, ManagementObject rPConfigurationService, string resourceType, string resourceSubType, string poolId) { string poolPath = MsvmResourcePool.GetResourcePoolPath( scope, resourceType, resourceSubType, poolId); using (ManagementBaseObject inParams = rPConfigurationService.GetMethodParameters( "DeletePool")) { inParams["Pool"] = poolPath; using (ManagementBaseObject outParams = rPConfigurationService.InvokeMethod( "DeletePool", inParams, null)) { WmiUtilities.ValidateOutput(outParams, scope, true, true); } } }
ModifyPoolResourcesHelper( ManagementScope scope, ManagementObject rPConfigurationService, string resourceType, string resourceSubType, string poolId, string[] parentPoolIdArray, string[][] parentHostResourcesArray) { string poolPath = MsvmResourcePool.GetResourcePoolPath( scope, resourceType, resourceSubType, poolId); ModifyPoolResourcesByPath( scope, rPConfigurationService, resourceType, resourceSubType, poolPath, parentPoolIdArray, parentHostResourcesArray); }
GetParentPoolArrayFromPoolIds( ManagementScope scope, string resourceType, string resourceSubType, string[] poolIdArray) { List <string> pathList = new List <string>(); foreach (string poolId in poolIdArray) { pathList.Add( MsvmResourcePool.GetResourcePoolPath( scope, resourceType, resourceSubType, poolId)); } return(pathList.ToArray()); }
ModifyPoolSettingsHelper( ManagementScope scope, ManagementObject rPConfigurationService, string resourceType, string resourceSubType, string poolId, string resourcePoolSettingData) { string poolPath = MsvmResourcePool.GetResourcePoolPath( scope, resourceType, resourceSubType, poolId); ModifyPoolSettingsByPath( scope, rPConfigurationService, poolPath, resourcePoolSettingData); }