Пример #1
0
        public GetPropertyOpSettings(CimInstanceName instanceName, string propertyName)
        {
            ReqType = RequestType.GetProperty;

            InstanceName = instanceName;
            PropertyName = propertyName;
        }
Пример #2
0
        public SetPropertyOpSettings(CimInstanceName instanceName, string propertyName, string value)
        {
            ReqType = RequestType.SetProperty;

            InstanceName = instanceName;
            PropertyName = propertyName;
            NewValue = value;
        }
Пример #3
0
        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);
        }
Пример #6
0
 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);
 }
Пример #16
0
 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));
 }
Пример #19
0
 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);
 }