Beispiel #1
0
 public Process(System.Management.ManagementScope mgmtScope, System.Management.ManagementPath path, System.Management.ObjectGetOptions getOptions) {
     if ((path != null)) {
         if ((CheckIfProperClass(mgmtScope, path, getOptions) != true)) {
             throw new System.ArgumentException("Class name does not match.");
         }
     }
     PrivateLateBoundObject = new System.Management.ManagementObject(mgmtScope, path, getOptions);
     PrivateSystemProperties = new ManagementSystemProperties(PrivateLateBoundObject);
     curObj = PrivateLateBoundObject;
 }
Beispiel #2
0
 public Process(System.Management.ManagementObject theObject) {
     if ((CheckIfProperClass(theObject) == true)) {
         PrivateLateBoundObject = theObject;
         PrivateSystemProperties = new ManagementSystemProperties(PrivateLateBoundObject);
         curObj = PrivateLateBoundObject;
     }
     else {
         throw new System.ArgumentException("Class name does not match.");
     }
 }
 public NetworkAdapterConfiguration(System.Management.ManagementObject theObject) {
     Initialize();
     if ((CheckIfProperClass(theObject) == true)) {
         PrivateLateBoundObject = theObject;
         PrivateSystemProperties = new ManagementSystemProperties(PrivateLateBoundObject);
         curObj = PrivateLateBoundObject;
     }
     else {
         throw new System.ArgumentException("Class name does not match.");
     }
 }
 public RegistryTreeChangeEvent(System.Management.ManagementObject theObject)
 {
     Initialize();
     if ((CheckIfProperClass(theObject) == true)) {
         PrivateLateBoundObject = theObject;
         PrivateSystemProperties = new ManagementSystemProperties(PrivateLateBoundObject);
         curObj = PrivateLateBoundObject;
     }
     else {
         throw new System.ArgumentException("Class name does not match.");
     }
 }
Beispiel #5
0
 public SystemRestore(System.Management.ManagementBaseObject theObject)
 {
     Initialize();
     if ((CheckIfProperClass(theObject) == true)) {
         embeddedObj = theObject;
         PrivateSystemProperties = new ManagementSystemProperties(theObject);
         curObj = embeddedObj;
         isEmbedded = true;
     }
     else {
         throw new System.ArgumentException("Class name does not match.");
     }
 }
Beispiel #6
0
 public BcdObject(ManagementBaseObject theObject)
 {
     Initialize();
     if (CheckIfProperClass(theObject))
     {
         _privateSystemProperties = new ManagementSystemProperties(theObject);
         _curObj     = theObject;
         _isEmbedded = true;
     }
     else
     {
         throw new ArgumentException("クラス名が一致しません。");
     }
 }
Beispiel #7
0
 public BcdDeviceUnknownData(ManagementObject theObject)
 {
     this.Initialize();
     if (this.CheckIfProperClass(theObject))
     {
         this.PrivateLateBoundObject  = theObject;
         this.PrivateSystemProperties = new ManagementSystemProperties(this.PrivateLateBoundObject);
         this.curObj = this.PrivateLateBoundObject;
     }
     else
     {
         throw new System.ArgumentException("クラス名が一致しません。");
     }
 }
Beispiel #8
0
 private void InitializeObject(ManagementScope mgmtScope, ManagementPath path, ObjectGetOptions getOptions)
 {
     Initialize();
     if (path != null)
     {
         if (CheckIfProperClass(mgmtScope, path, getOptions) != true)
         {
             throw new ArgumentException("Class name does not match.");
         }
     }
     _privateLateBoundObject  = new ManagementObject(mgmtScope, path, getOptions);
     _privateSystemProperties = new ManagementSystemProperties(_privateLateBoundObject);
     _curObj = _privateLateBoundObject;
 }
Beispiel #9
0
 public BcdObject(ManagementObject theObject)
 {
     Initialize();
     if (CheckIfProperClass(theObject))
     {
         _privateLateBoundObject  = theObject;
         _privateSystemProperties = new ManagementSystemProperties(_privateLateBoundObject);
         _curObj = _privateLateBoundObject;
     }
     else
     {
         throw new ArgumentException("クラス名が一致しません。");
     }
 }
Beispiel #10
0
 public HostInstance(ManagementObject theObject)
 {
     Initialize();
     if (CheckIfProperClass(theObject))
     {
         _privateLateBoundObject  = theObject;
         _privateSystemProperties = new ManagementSystemProperties(_privateLateBoundObject);
         _curObj = _privateLateBoundObject;
     }
     else
     {
         throw new ArgumentException("Class name does not match.");
     }
 }
Beispiel #11
0
 protected void InitializeObject(ManagementScope mgmtScope, ManagementPath path, ObjectGetOptions getOptions)
 {
     Initialize();
     if (path != null)
     {
         if (CheckIfProperClass(mgmtScope, path, getOptions) != true)
         {
             throw new ArgumentException(Properties.Exceptions.Default.ClassNameExceptionMessage);
         }
     }
     PrivateLateBoundObject = new ManagementObject(mgmtScope, path, getOptions);
     SystemProperties       = new ManagementSystemProperties(PrivateLateBoundObject);
     LateBoundObject        = PrivateLateBoundObject;
 }
Beispiel #12
0
 private void InitializeObject(System.Management.ManagementScope mgmtScope, System.Management.ManagementPath path, System.Management.ObjectGetOptions getOptions)
 {
     Initialize();
     if ((path != null))
     {
         if ((CheckIfProperClass(mgmtScope, path, getOptions) != true))
         {
             throw new System.ArgumentException("Class name does not match.");
         }
     }
     PrivateLateBoundObject  = new System.Management.ManagementObject(mgmtScope, path, getOptions);
     PrivateSystemProperties = new ManagementSystemProperties(PrivateLateBoundObject);
     curObj = PrivateLateBoundObject;
 }
Beispiel #13
0
 private void InitializeObject(ManagementScope mgmtScope, ManagementPath path, ObjectGetOptions getOptions)
 {
     this.Initialize();
     if ((path != null))
     {
         if ((this.CheckIfProperClass(mgmtScope, path, getOptions) != true))
         {
             throw new System.ArgumentException("クラス名が一致しません。");
         }
     }
     this.PrivateLateBoundObject  = new ManagementObject(mgmtScope, path, getOptions);
     this.PrivateSystemProperties = new ManagementSystemProperties(this.PrivateLateBoundObject);
     this.curObj = this.PrivateLateBoundObject;
 }
Beispiel #14
0
 public EnvironmentWmi(System.Management.ManagementObject theObject)
 {
     Initialize();
     if ((CheckIfProperClass(theObject) == true))
     {
         PrivateLateBoundObject  = theObject;
         PrivateSystemProperties = new ManagementSystemProperties(PrivateLateBoundObject);
         curObj = PrivateLateBoundObject;
     }
     else
     {
         throw new System.ArgumentException("Class name does not match.");
     }
 }
Beispiel #15
0
 public SystemAccount(System.Management.ManagementObject theObject)
 {
     Initialize();
     if ((CheckIfProperClass(theObject) == true))
     {
         PrivateLateBoundObject  = theObject;
         PrivateSystemProperties = new ManagementSystemProperties(PrivateLateBoundObject);
         curObj = PrivateLateBoundObject;
     }
     else
     {
         throw new System.ArgumentException("类名不匹配。");
     }
 }
Beispiel #16
0
 public HostInstance(ManagementBaseObject theObject)
 {
     Initialize();
     if (CheckIfProperClass(theObject))
     {
         _privateSystemProperties = new ManagementSystemProperties(theObject);
         _curObj     = theObject;
         _isEmbedded = true;
     }
     else
     {
         throw new ArgumentException("Class name does not match.");
     }
 }
Beispiel #17
0
 public EthernetSwitchPortBandwidthSettingData(System.Management.ManagementObject theObject)
 {
     Initialize();
     if ((CheckIfProperClass(theObject) == true))
     {
         PrivateLateBoundObject  = theObject;
         PrivateSystemProperties = new ManagementSystemProperties(PrivateLateBoundObject);
         curObj = PrivateLateBoundObject;
     }
     else
     {
         throw new System.ArgumentException("Class name does not match.");
     }
 }
Beispiel #18
0
 public SystemBase(ManagementObject theObject, string ClassName)
 {
     CreatedClassName = ClassName;
     Initialize();
     if (theObject != null && CheckIfProperClass(theObject) == true)
     {
         PrivateLateBoundObject = theObject;
         SystemProperties       = new ManagementSystemProperties(PrivateLateBoundObject);
         LateBoundObject        = PrivateLateBoundObject;
     }
     else
     {
         throw new ArgumentException(Properties.Exceptions.Default.ClassNameExceptionMessage);
     }
 }
Beispiel #19
0
 public SystemAccount(System.Management.ManagementBaseObject theObject)
 {
     Initialize();
     if ((CheckIfProperClass(theObject) == true))
     {
         embeddedObj             = theObject;
         PrivateSystemProperties = new ManagementSystemProperties(theObject);
         curObj     = embeddedObj;
         isEmbedded = true;
     }
     else
     {
         throw new System.ArgumentException("类名不匹配。");
     }
 }
Beispiel #20
0
 public EnvironmentWmi(System.Management.ManagementBaseObject theObject)
 {
     Initialize();
     if ((CheckIfProperClass(theObject) == true))
     {
         embeddedObj             = theObject;
         PrivateSystemProperties = new ManagementSystemProperties(theObject);
         curObj     = embeddedObj;
         isEmbedded = true;
     }
     else
     {
         throw new System.ArgumentException("Class name does not match.");
     }
 }
Beispiel #21
0
 public BcdDeviceLocateData(ManagementBaseObject theObject)
 {
     this.Initialize();
     if (this.CheckIfProperClass(theObject))
     {
         this.embeddedObj             = theObject;
         this.PrivateSystemProperties = new ManagementSystemProperties(theObject);
         this.curObj     = this.embeddedObj;
         this.isEmbedded = true;
     }
     else
     {
         throw new System.ArgumentException("クラス名が一致しません。");
     }
 }
 public PerfFormattedData_Counters_ProcessorInformation(System.Management.ManagementBaseObject theObject)
 {
     Initialize();
     if ((CheckIfProperClass(theObject) == true)) {
         embeddedObj = theObject;
         PrivateSystemProperties = new ManagementSystemProperties(theObject);
         curObj = embeddedObj;
         isEmbedded = true;
     }
     else {
         throw new System.ArgumentException("Class name does not match.");
     }
 }
Beispiel #23
0
 public Battery(System.Management.ManagementBaseObject theObject)
 {
     Initialize();
     if ((CheckIfProperClass(theObject) == true)) {
         embeddedObj = theObject;
         PrivateSystemProperties = new ManagementSystemProperties(theObject);
         curObj = embeddedObj;
         isEmbedded = true;
     }
     else {
         throw new System.ArgumentException("クラス名が一致しません。");
     }
 }
Beispiel #24
0
 public Battery(System.Management.ManagementObject theObject)
 {
     Initialize();
     if ((CheckIfProperClass(theObject) == true)) {
         PrivateLateBoundObject = theObject;
         PrivateSystemProperties = new ManagementSystemProperties(PrivateLateBoundObject);
         curObj = PrivateLateBoundObject;
     }
     else {
         throw new System.ArgumentException("クラス名が一致しません。");
     }
 }
Beispiel #25
0
 private void InitializeObject(System.Management.ManagementScope mgmtScope, System.Management.ManagementPath path, System.Management.ObjectGetOptions getOptions)
 {
     Initialize();
     if ((path != null)) {
         if ((CheckIfProperClass(mgmtScope, path, getOptions) != true)) {
             throw new System.ArgumentException("クラス名が一致しません。");
         }
     }
     PrivateLateBoundObject = new System.Management.ManagementObject(mgmtScope, path, getOptions);
     PrivateSystemProperties = new ManagementSystemProperties(PrivateLateBoundObject);
     curObj = PrivateLateBoundObject;
 }
 public SyntheticEthernetPortSettingData(System.Management.ManagementObject theObject)
 {
     Initialize();
     if ((CheckIfProperClass(theObject) == true)) {
         PrivateLateBoundObject = theObject;
         PrivateSystemProperties = new ManagementSystemProperties(PrivateLateBoundObject);
         curObj = PrivateLateBoundObject;
     }
     else {
         throw new System.ArgumentException("Class name does not match.");
     }
 }
 public WmiMonitorBrightnessMethods(System.Management.ManagementObject theObject)
 {
     Initialize();
     if ((CheckIfProperClass(theObject) == true)) {
         PrivateLateBoundObject = theObject;
         PrivateSystemProperties = new ManagementSystemProperties(PrivateLateBoundObject);
         curObj = PrivateLateBoundObject;
     }
     else {
         throw new System.ArgumentException("Class name does not match.");
     }
 }
 public Logicaldisk(ManagementObject theObject)
 {
     if (CheckIfProperClass(theObject))
       {
     PrivateLateBoundObject = theObject;
     PrivateSystemProperties = new ManagementSystemProperties(PrivateLateBoundObject);
     curObj = PrivateLateBoundObject;
       }
       else
       {
     throw new ArgumentException("Klassenname stimmt nicht überein.");
       }
 }
Beispiel #29
0
 public NetworkAdapter(System.Management.ManagementObject theObject)
 {
     Initialize();
     if ((CheckIfProperClass(theObject) == true))
     {
         PrivateLateBoundObject = theObject;
         PrivateSystemProperties = new ManagementSystemProperties(PrivateLateBoundObject);
         curObj = PrivateLateBoundObject;
     }
     else
     {
         throw new System.ArgumentException("Nazwa klasy nie jest odpowiednia.");
     }
 }
Beispiel #30
0
 public ComputerSystem(ManagementBaseObject theObject)
 {
     Initialize();
     if ((!CheckIfProperClass(theObject)))
     {
         throw new ArgumentException("Class name does not match.");
     }
     _embeddedObj = theObject;
     _privateSystemProperties = new ManagementSystemProperties(theObject);
     _curObj = _embeddedObj;
     _isEmbedded = true;
 }
Beispiel #31
0
 public ComputerSystem(ManagementObject theObject)
 {
     Initialize();
     if (CheckIfProperClass(theObject))
     {
         _privateLateBoundObject = theObject;
         _privateSystemProperties = new ManagementSystemProperties(_privateLateBoundObject);
         _curObj = _privateLateBoundObject;
     }
     else
     {
         throw new ArgumentException("Class name does not match.");
     }
 }
Beispiel #32
0
 private void InitializeObject(ManagementScope mgmtScope, ManagementPath path, ObjectGetOptions getOptions)
 {
     Initialize();
     if ((path != null))
     {
         if ((CheckIfProperClass(mgmtScope, path, getOptions) != true))
         {
             throw new ArgumentException("Class name does not match.");
         }
     }
     _privateLateBoundObject = new ManagementObject(mgmtScope, path, getOptions);
     _privateSystemProperties = new ManagementSystemProperties(_privateLateBoundObject);
     _curObj = _privateLateBoundObject;
 }
 public NetworkAdapter(System.Management.ManagementBaseObject theObject)
 {
     Initialize();
     if ((CheckIfProperClass(theObject) == true)) {
         embeddedObj = theObject;
         PrivateSystemProperties = new ManagementSystemProperties(theObject);
         curObj = embeddedObj;
         isEmbedded = true;
     }
     else {
         throw new System.ArgumentException("El nombre de clase no coincide.");
     }
 }
 public Logicaldisk(ManagementScope mgmtScope, ManagementPath path, ObjectGetOptions getOptions)
 {
     if ((path != null))
       {
     if ((CheckIfProperClass(mgmtScope, path, getOptions) != true))
     {
       throw new ArgumentException("Klassenname stimmt nicht überein.");
     }
       }
       PrivateLateBoundObject = new ManagementObject(mgmtScope, path, getOptions);
       PrivateSystemProperties = new ManagementSystemProperties(PrivateLateBoundObject);
       curObj = PrivateLateBoundObject;
 }
 public NetworkAdapterConfiguration(System.Management.ManagementBaseObject theObject)
 {
     Initialize();
     if ((CheckIfProperClass(theObject) == true))
     {
         embeddedObj = theObject;
         PrivateSystemProperties = new ManagementSystemProperties(theObject);
         curObj = embeddedObj;
         isEmbedded = true;
     }
     else
     {
         throw new System.ArgumentException("Nazwa klasy nie jest odpowiednia.");
     }
 }
		public OperatingSystem(ManagementObject theObject)
		{
			Initialize();
			if (CheckIfProperClass(theObject))
			{
				PrivateLateBoundObject = theObject;
				PrivateSystemProperties = new ManagementSystemProperties(PrivateLateBoundObject);
				curObj = PrivateLateBoundObject;
			}
			else
			{
				throw new ArgumentException("Class name does not match.");
			}
		}
 public Logicaldisk(ManagementBaseObject theObject)
 {
     if (CheckIfProperClass(theObject))
       {
     embeddedObj = theObject;
     PrivateSystemProperties = new ManagementSystemProperties(theObject);
     curObj = embeddedObj;
     isEmbedded = true;
       }
       else
       {
     throw new ArgumentException("Klassenname stimmt nicht überein.");
       }
 }
Beispiel #38
0
 public void UpdateObject()
 {
     PrivateLateBoundObject.Get();
     SystemProperties = new ManagementSystemProperties(PrivateLateBoundObject);
     LateBoundObject  = PrivateLateBoundObject;
 }
 public NetworkAdapterConfiguration(ManagementObject theObject)
 {
     Initialize();
     if ((CheckIfProperClass(theObject)))
     {
         _privateLateBoundObject = theObject;
         _privateSystemProperties = new ManagementSystemProperties(_privateLateBoundObject);
         LateBoundObject = _privateLateBoundObject;
     }
     else
     {
         throw new ArgumentException("Class name does not match.");
     }
 }
		public OperatingSystem(ManagementBaseObject theObject)
		{
			Initialize();
			if (CheckIfProperClass(theObject))
			{
				embeddedObj = theObject;
				PrivateSystemProperties = new ManagementSystemProperties(theObject);
				curObj = embeddedObj;
				isEmbedded = true;
			}
			else
			{
				throw new ArgumentException("Class name does not match.");
			}
		}
 public NetworkAdapterConfiguration(ManagementBaseObject theObject)
 {
     Initialize();
     if ((!CheckIfProperClass(theObject)))
     {
         throw new ArgumentException("Class name does not match.");
     }
     _embeddedObj = theObject;
     _privateSystemProperties = new ManagementSystemProperties(theObject);
     LateBoundObject = _embeddedObj;
     _isEmbedded = true;
 }
 public VirtualEthernetSwitchManagementService(System.Management.ManagementObject theObject) {
     Initialize();
     if ((CheckIfProperClass(theObject) == true)) {
         PrivateLateBoundObject = theObject;
         PrivateSystemProperties = new ManagementSystemProperties(PrivateLateBoundObject);
         curObj = PrivateLateBoundObject;
     }
     else {
         throw new System.ArgumentException("Class name does not match.");
     }
 }