What is a namespace (Namespace)

Source: Internet
Author: User
Tags file system win32

Namespaces are a group of classes and entities that are defined to better manage instances of classes and classes, an instance of the _namespace system class, or a derived class of the _namespace class, _ The namespace class has only one property: Name. This property allows a user to separate a namespace from other namespaces, noting that the name of the namespace cannot include an underscore of the prefix and suffix.
Namespaces can be interconnected and organized into a network structure with arbitrary levels of classes and classes, a structure that resembles the tree structure of the file system, and in the same level, the namespace must have a different name.
To represent their hierarchies, you can use the right line to indicate the relationship, as follows:
Namespace1\namespace2\namespace3.....\lastnamespace
Although these namespaces can be represented as such hierarchies, there is no inheritance of classes between these namespaces, that is, classes in the child's namespace do not automatically inherit the classes in the parent's namespace.
Typically, a namespace contains an instance of a series of classes and classes in an environment. For example, classes that are defined and run under Win32 will not conflict even if they have the same name as the classes in other namespaces. However, when creating a new class, it is best not to have the same name as the class you have already created, which will reduce some problems for future WMI publishing.
All WMI contains the following predefined namespaces:
Root
Toor\default
Root\cimv32
The root namespace is a namespace specifically designed to contain other namespaces, and WMI places all other namespaces under this namespace. The Toor\default namespace contains classes that are essentially systems, and the Root\cimv32 namespace consists primarily of classes that run in WIN32 environments. For example: Win32_LogicalDisk and Win32_OperatingSystem. Much of the operation takes place under the Root\cimv32 namespace.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.