public GetPropertyOpSettings(CimInstanceName instanceName, string propertyName) { ReqType = RequestType.GetProperty; InstanceName = instanceName; PropertyName = propertyName; }
public SetPropertyOpSettings(CimInstanceName instanceName, string propertyName, string value) { ReqType = RequestType.SetProperty; InstanceName = instanceName; PropertyName = propertyName; NewValue = value; }
public GetInstanceOpSettings(CimInstanceName instanceName) { ReqType = RequestType.GetInstance; InstanceName = instanceName; LocalOnly = true; IncludeQualifiers = false; IncludeClassOrigin = false; PropertyList = null; }
//public ReferenceNamesWithClassNameOpSettings(ICimObjectName objectName) public ReferenceNamesWithInstanceNameOpSettings(CimInstanceName instanceName) { //ReqType = RequestType.ReferenceNames; //ObjectName = objectName; InstanceName = instanceName; //ResultClass = null; //Role = null; }
private void deleteInstanceToolStripMenuItem1_Click(object sender, EventArgs e) { CimInstanceName cin = new CimInstanceName("OMC_LinuxDataFile"); cin.KeyBindings.Add(new CimKeyBinding("Name", new CimKeyValue("string", "/tmp/asroot"))); cin.KeyBindings.Add(new CimKeyBinding("CSCreationClassName", new CimKeyValue("string", "tCSCreationClassName"))); cin.KeyBindings.Add(new CimKeyBinding("CSName", new CimKeyValue("string", "tCSName"))); cin.KeyBindings.Add(new CimKeyBinding("FSCreationClassName", new CimKeyValue("string", "tFSCreationClassName"))); cin.KeyBindings.Add(new CimKeyBinding("FSName", new CimKeyValue("string", "tFSName"))); cin.KeyBindings.Add(new CimKeyBinding("CreationClassName", new CimKeyValue("string", "tCreationClassName"))); CimInstance ci = mainWbemClient.GetInstance(cin); mainWbemClient.DeleteInstance(cin); }
public SetPropertyOpSettings(CimInstanceName instanceName, string propertyName) : this(instanceName, propertyName, null) { }
public CimInstance GetInstance(CimInstanceName instanceName) { return GetInstance(new GetInstanceOpSettings(instanceName)); }
public AssociatorNamesWithInstanceNameOpSettings(CimInstanceName instanceName) : base() { InstanceName = instanceName; }
public void Associators(CimInstanceName instanceName, CimDataTypeHandler callBack) { Associators(new AssociatorsWithInstanceNameOpSettings(instanceName), callBack); }
private CimInstance CombineInstanceAndInstanceName(CimInstance instance, CimInstanceName instanceName) { if (instance.ClassName != instanceName.ClassName) throw new Exception("InstanceName.ClassName != Instance.ClassName"); instance.InstanceName = instanceName; return instance; }
public void SetProperty(CimInstanceName instanceName, string propertyName, string value) { SetPropertyOpSettings settings = new SetPropertyOpSettings(instanceName, propertyName, value); SetProperty(settings); }
public CimInstancePathList References(CimInstanceName instanceName) { return References(new ReferencesWithInstanceNameOpSettings(instanceName)); }
public void References(CimInstanceName instanceName, CimDataTypeHandler callBack) { References(new ReferencesWithInstanceNameOpSettings(instanceName), callBack); }
public CimMethodResponse InvokeMethod(CimInstanceName instanceName, CimName methodName, CimParameterValueList parameterList) { return InvokeMethod(new InvokeMethodOpSettings(instanceName, methodName, parameterList)); }
public string GetProperty(CimInstanceName instanceName, string propertyName) { GetPropertyOpSettings settings = new GetPropertyOpSettings(instanceName, propertyName); return GetProperty(settings); }
public AssociatorsWithInstanceNameOpSettings(CimInstanceName instanceName) { InstanceName = instanceName; }
public DeleteInstanceOpSettings(CimInstanceName instanceName) { ReqType = RequestType.DeleteInstance; InstanceName = instanceName; }
public CimInstancePathList Associators(CimInstanceName instanceName) { return Associators(new AssociatorsWithInstanceNameOpSettings(instanceName)); }
public ReferencesWithInstanceNameOpSettings(CimInstanceName instanceName) { InstanceName = instanceName; }
/// <summary> /// Deletes the instance from the Cimom /// </summary> /// <param name="instanceName">Name of the instance to delete</param> public void DeleteInstance(CimInstanceName instanceName) { DeleteInstanceOpSettings settings = new DeleteInstanceOpSettings(instanceName); DeleteInstance(settings); }