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;
        }
示例#5
0
        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)
 {
 }
示例#7
0
 public CimInstance GetInstance(CimInstanceName instanceName)
 {
     return GetInstance(new GetInstanceOpSettings(instanceName));
 }
 public AssociatorNamesWithInstanceNameOpSettings(CimInstanceName instanceName)
     : base()
 {
     InstanceName = instanceName;
 }
示例#9
0
 public void Associators(CimInstanceName instanceName, CimDataTypeHandler callBack)
 {
     Associators(new AssociatorsWithInstanceNameOpSettings(instanceName), callBack);
 }
示例#10
0
        private CimInstance CombineInstanceAndInstanceName(CimInstance instance, CimInstanceName instanceName)
        {
            if (instance.ClassName != instanceName.ClassName)
                throw new Exception("InstanceName.ClassName != Instance.ClassName");

            instance.InstanceName = instanceName;

            return instance;
        }
示例#11
0
 public void SetProperty(CimInstanceName instanceName, string propertyName, string value)
 {
     SetPropertyOpSettings settings = new SetPropertyOpSettings(instanceName, propertyName, value);
     SetProperty(settings);
 }
示例#12
0
 public CimInstancePathList References(CimInstanceName instanceName)
 {
     return References(new ReferencesWithInstanceNameOpSettings(instanceName));
 }
示例#13
0
 public void References(CimInstanceName instanceName, CimDataTypeHandler callBack)
 {
     References(new ReferencesWithInstanceNameOpSettings(instanceName), callBack);
 }
示例#14
0
 public CimMethodResponse InvokeMethod(CimInstanceName instanceName, CimName methodName, CimParameterValueList parameterList)
 {
     return InvokeMethod(new InvokeMethodOpSettings(instanceName, methodName, parameterList));
 }
示例#15
0
 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;
        }
示例#18
0
 public CimInstancePathList Associators(CimInstanceName instanceName)
 {
     return Associators(new AssociatorsWithInstanceNameOpSettings(instanceName));
 }
 public ReferencesWithInstanceNameOpSettings(CimInstanceName instanceName)
 {
     InstanceName = instanceName;
 }
示例#20
0
 /// <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);
 }