• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# ManagementSystemProperties类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中ManagementSystemProperties的典型用法代码示例。如果您正苦于以下问题:C# ManagementSystemProperties类的具体用法?C# ManagementSystemProperties怎么用?C# ManagementSystemProperties使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ManagementSystemProperties类属于命名空间,在下文中一共展示了ManagementSystemProperties类的18个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: Process

 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.");
     }
 }
开发者ID:ehershey,项目名称:development,代码行数:10,代码来源:Win32_Process.CS


示例2: NetworkAdapterConfiguration

 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.");
     }
 }
开发者ID:amoskahiga,项目名称:ComputerBrowser,代码行数:11,代码来源:Win32_NetworkAdapterConfiguration.CS


示例3: RegistryTreeChangeEvent

 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.");
     }
 }
开发者ID:jogibear9988,项目名称:JhVirtualKeyboard,代码行数:12,代码来源:RegistryTreeChangeEvent.cs


示例4: SystemRestore

 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.");
     }
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:13,代码来源:SystemRestore.cs


示例5: NetworkAdapter

 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.");
     }
 }
开发者ID:pjbober,项目名称:NetConfig,代码行数:14,代码来源:NetworkAdapter.cs


示例6: ComputerSystem

 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.");
     }
 }
开发者ID:jardrake03,项目名称:incert,代码行数:14,代码来源:ComputerSystem.cs


示例7: NetworkAdapterConfiguration

 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;
 }
开发者ID:jardrake03,项目名称:incert,代码行数:12,代码来源:NetworkAdapterConfiguration.cs


示例8: InitializeObject

 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;
 }
开发者ID:jardrake03,项目名称:incert,代码行数:14,代码来源:ComputerSystem.cs


示例9: Battery

 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("クラス名が一致しません。");
     }
 }
开发者ID:nayutaya,项目名称:batty-misc,代码行数:13,代码来源:Battery.cs


示例10: OperatingSystem

		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.");
			}
		}
开发者ID:CarverLab,项目名称:tubeCoreWebService.root,代码行数:15,代码来源:OperatingSystem.CS


示例11: WmiMonitorBrightnessMethods

 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.");
     }
 }
开发者ID:dranger003,项目名称:WindowsFormsApplication2,代码行数:12,代码来源:WmiMonitorBrightnessMethods.cs


示例12: InitializeObject

 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;
 }
开发者ID:nayutaya,项目名称:batty-misc,代码行数:12,代码来源:Battery.cs


示例13: VirtualEthernetSwitchManagementService

 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.");
     }
 }
开发者ID:RSI-RKlein,项目名称:cloudstack,代码行数:11,代码来源:ROOT.virtualization.v2.Msvm_VirtualEthernetSwitchManagementService.cs


示例14: Logicaldisk

 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;
 }
开发者ID:sanyaade-embedded-systems,项目名称:MPTagThat,代码行数:13,代码来源:Logicaldisk.cs


示例15: NetworkAdapter

 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.");
     }
 }
开发者ID:jemc771,项目名称:IRIEXTREME,代码行数:13,代码来源:ROOT.CIMV2.Win32_NetworkAdapter.cs


示例16: SyntheticEthernetPortSettingData

 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.");
     }
 }
开发者ID:OrangeChan,项目名称:cshv3,代码行数:12,代码来源:ROOT.virtualization.Msvm_SyntheticEthernetPortSettingData.cs


示例17: NetworkAdapterConfiguration

 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.");
     }
 }
开发者ID:pjbober,项目名称:NetConfig,代码行数:15,代码来源:NetworkAdapterConfiguration.cs


示例18: PerfFormattedData_Counters_ProcessorInformation

 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.");
     }
 }
开发者ID:OrangeChan,项目名称:cshv3,代码行数:13,代码来源:root.CIMV2.Win32_PerfFormattedData_Counters_ProcessorInformation.cs



注:本文中的ManagementSystemProperties类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Manager类代码示例发布时间:2022-05-24
下一篇:
C# ManagedCefBrowserAdapter类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap