コード例 #1
0
ファイル: Win32_Process.CS プロジェクト: ehershey/development
 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;
 }
コード例 #2
0
ファイル: Win32_Process.CS プロジェクト: ehershey/development
 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.");
     }
 }
コード例 #3
0
 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.");
     }
 }
コード例 #4
0
 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.");
     }
 }
コード例 #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.");
     }
 }
コード例 #6
0
ファイル: BcdObject.cs プロジェクト: ssbagun/HyperV-Switch
 public BcdObject(ManagementBaseObject theObject)
 {
     Initialize();
     if (CheckIfProperClass(theObject))
     {
         _privateSystemProperties = new ManagementSystemProperties(theObject);
         _curObj     = theObject;
         _isEmbedded = true;
     }
     else
     {
         throw new ArgumentException("クラス名が一致しません。");
     }
 }
コード例 #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("クラス名が一致しません。");
     }
 }
コード例 #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;
 }
コード例 #9
0
ファイル: BcdObject.cs プロジェクト: ssbagun/HyperV-Switch
 public BcdObject(ManagementObject theObject)
 {
     Initialize();
     if (CheckIfProperClass(theObject))
     {
         _privateLateBoundObject  = theObject;
         _privateSystemProperties = new ManagementSystemProperties(_privateLateBoundObject);
         _curObj = _privateLateBoundObject;
     }
     else
     {
         throw new ArgumentException("クラス名が一致しません。");
     }
 }
コード例 #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.");
     }
 }
コード例 #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;
 }
コード例 #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;
 }
コード例 #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;
 }
コード例 #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.");
     }
 }
コード例 #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("类名不匹配。");
     }
 }
コード例 #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.");
     }
 }
コード例 #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.");
     }
 }
コード例 #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);
     }
 }
コード例 #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("类名不匹配。");
     }
 }
コード例 #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.");
     }
 }
コード例 #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.");
     }
 }
コード例 #23
0
ファイル: Battery.cs プロジェクト: nayutaya/batty-misc
 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("クラス名が一致しません。");
     }
 }
コード例 #24
0
ファイル: Battery.cs プロジェクト: nayutaya/batty-misc
 public Battery(System.Management.ManagementObject theObject)
 {
     Initialize();
     if ((CheckIfProperClass(theObject) == true)) {
         PrivateLateBoundObject = theObject;
         PrivateSystemProperties = new ManagementSystemProperties(PrivateLateBoundObject);
         curObj = PrivateLateBoundObject;
     }
     else {
         throw new System.ArgumentException("クラス名が一致しません。");
     }
 }
コード例 #25
0
ファイル: Battery.cs プロジェクト: nayutaya/batty-misc
 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.");
     }
 }
コード例 #28
0
 public Logicaldisk(ManagementObject theObject)
 {
     if (CheckIfProperClass(theObject))
       {
     PrivateLateBoundObject = theObject;
     PrivateSystemProperties = new ManagementSystemProperties(PrivateLateBoundObject);
     curObj = PrivateLateBoundObject;
       }
       else
       {
     throw new ArgumentException("Klassenname stimmt nicht überein.");
       }
 }
コード例 #29
0
ファイル: NetworkAdapter.cs プロジェクト: pjbober/NetConfig
 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.");
     }
 }
コード例 #30
0
ファイル: ComputerSystem.cs プロジェクト: jardrake03/incert
 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;
 }
コード例 #31
0
ファイル: ComputerSystem.cs プロジェクト: jardrake03/incert
 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.");
     }
 }
コード例 #32
0
ファイル: ComputerSystem.cs プロジェクト: jardrake03/incert
 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;
 }
コード例 #33
0
 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.");
     }
 }
コード例 #34
0
 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;
 }
コード例 #35
0
 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.");
     }
 }
コード例 #36
0
		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.");
			}
		}
コード例 #37
0
 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.");
       }
 }
コード例 #38
0
ファイル: MsvmBase.cs プロジェクト: gheorghitamutu/Hyped
 public void UpdateObject()
 {
     PrivateLateBoundObject.Get();
     SystemProperties = new ManagementSystemProperties(PrivateLateBoundObject);
     LateBoundObject  = PrivateLateBoundObject;
 }
コード例 #39
0
 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.");
     }
 }
コード例 #40
0
		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.");
			}
		}
コード例 #41
0
 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.");
     }
 }