WindowsXP/admin/wmi/wbem/sdk/vs7/vside/servexpl/beta1/intrinsiceventquerycomponent.cs
2025-04-27 07:49:33 -04:00

92 lines
1.5 KiB
C#

namespace Microsoft.VSDesigner.WMI {
using System;
using System.ComponentModel;
using System.Core;
using System.Collections;
using System.WinForms;
using WbemScripting;
public class IntrinsicEventQueryComponent : Component
{
public readonly string server = "";
public readonly string ns = "";
public string query = "";
private IntrinsicEventQueryNode queryNode = null;
public IntrinsicEventQueryComponent(String serverIn,
String nsIn,
String queryIn,
IntrinsicEventQueryNode queryNodeIn)
{
server = serverIn;
ns = nsIn;
query = queryIn;
queryNode = queryNodeIn;
}
public override bool Equals(Object other)
{
if (!(other is IntrinsicEventQueryComponent))
{
return false;
}
if ((((IntrinsicEventQueryComponent)other).server == server) &&
(((IntrinsicEventQueryComponent)other).ns == ns) &&
(((IntrinsicEventQueryComponent)other).query == query) )
{
return true;
}
else
{
return false;
}
}
[
Browsable(true),
ServerExplorerBrowsable(true)
]
public string Server
{
get
{
return server;
}
}
[
Browsable(true),
ServerExplorerBrowsable(true)
]
public string WMINamespace
{
get
{
return ns;
}
}
[
Browsable(true),
ServerExplorerBrowsable(true)
]
public string Query
{
get
{
return query;
}
set
{
query = value;
queryNode.Query = value;
}
}
}
}