本文整理汇总了C#中ManagementSystemProperties类的典型用法代码示例。如果您正苦于以下问题:C# ManagementSystemProperties类的具体用法?C# ManagementSystemProperties怎么用?C# ManagementSystemProperties使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ManagementSystemProperties类属于命名空间,在下文中一共展示了ManagementSystemProperties类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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.");
}
}
示例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.");
}
}
示例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.");
}
}
示例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.");
}
}
示例5: 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.");
}
}
示例6: 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.");
}
}
示例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;
}
示例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;
}
示例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("クラス名が一致しません。");
}
}
示例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.");
}
}
示例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.");
}
}
示例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;
}
示例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;
}
示例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.");
}
}