This documentation is archived and is not being maintained.

ObjectQuery Constructor

.NET Framework 1.1

Initializes a new instance of the ObjectQuery class.

Overload List

Initializes a new instance of the ObjectQuery class with no initialized values. This is the default constructor.

[Visual Basic] Public Sub New()
[C#] public ObjectQuery();
[C++] public: ObjectQuery();
[JScript] public function ObjectQuery();

Initializes a new instance of the ObjectQuery class for a specific query string.

[Visual Basic] Public Sub New(String)
[C#] public ObjectQuery(string);
[C++] public: ObjectQuery(String*);
[JScript] public function ObjectQuery(String);

Initializes a new instance of the ObjectQuery class for a specific query string and language.

[Visual Basic] Public Sub New(String, String)
[C#] public ObjectQuery(string, string);
[C++] public: ObjectQuery(String*, String*);
[JScript] public function ObjectQuery(String, String);

See Also

ObjectQuery Class | ObjectQuery Members | System.Management Namespace

Show: