API Reference
Class
WmiQueryHelpers
Helper utilities for safely composing WQL fragments and WMI object paths.
Inheritance
- Object
- WmiQueryHelpers
Methods
public static String BuildObjectPath(String className, String keyProperty, String keyValue) #Returns:
StringBuilds an instance path of the form Class.Key='Value' with proper escaping.
Parameters
- className System.String
- keyProperty System.String
- keyValue System.String
public static String EscapeLiteral(String s) #Returns:
StringEscapes a string literal for use inside single‑quoted WQL strings by doubling single quotes. Returns an empty string when s is null.
Parameters
- s System.String
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object