I want to write a class with similar funcionality as the .NET ManagementPath class. On MSDN is a set of articles which handles the format of object paths. However, I don't understand it yet with all special cases
String comparisons that deal with object paths are always case-insensitive. ==> does this also apply to the values of keys when querying for object instances?
Hexadecimal constants for integers. ==> where can they occur? in values of keys only?
Boolean constants for classes with keys that take Boolean values. ==> what are the constants? true / false? 0 / 1?
An assumed local server with a partial namespace path. Thus, specifying the root and default namespace implies the root and default namespace on the local server. ==> does this only mean that if I don't specify a server, that then "." is used as server?
No white space either within an element or between elements. ==> why does the original .NET implementation allow spaces in server names then?
Embedded quotation marks in object paths are allowed but must delimit the quotation mark with escape characters, as in a C or C++ application. ==> ???
Only decimal values are recognized as numeric portions of keys. ==> ???
Everything on this page: http://msdn.microsoft.com/en-us/library/aa389223(v=VS.85).aspx ==> ?
Well, the basic paths that I think are valid look like
\\Server\Namespace
\Namespace
\\Server\Namespace:Class
\Namespace:Class
Class
\\Server\Namespace:Class.KeyName=KeyValue
\Namespace:Class.KeyName=KeyVa