Expand Minimize
This topic has not yet been rated - Rate this topic

__NamespaceModificationEvent class

The __NamespaceModificationEvent system class reports a namespace modification event, which is a type of intrinsic event that is generated when a namespace is modified.

The following syntax is simplified from Managed Object Format (MOF) code and includes all inherited properties. Properties are listed in alphabetic order, not MOF order.

Syntax

class __NamespaceModificationEvent : __NamespaceOperationEvent
{
  __Namespace PreviousNamespace;
  uint8       SECURITY_DESCRIPTOR [];
  __Namespace TargetNamespace;
  uint64      TIME_CREATED;
};

Members

The __NamespaceModificationEvent class inherits from __NamespaceOperationEvent. __NamespaceModificationEvent also has these types of members:

Properties

The __NamespaceModificationEvent class has these properties.

PreviousNamespace
Data type: __Namespace
Access type: Read-only

Copy of the original version of a __Namespace instance. The Name property of this instance identifies the namespace that is modified.

SECURITY_DESCRIPTOR
Data type: uint8 array
Access type: Read-only

Descriptor that the event provider uses to determine the users that can receive an event. This property is inherited from __Event.

Windows 2000, Windows NT Server, and Windows Me/98/95:  This property is not available.

Note  A NULL access control list (ACL) in the SECURITY_DESCRIPTOR grants unlimited access to everyone all the time. For more information, see Creating a Security Descriptor for a New Object.

TargetNamespace
Data type: __Namespace
Access type: Read-only

Copy of the __Namespace instance that is modified. The Name property of the __Namespace instance indicates the namespace that is modified. This property is inherited from class __NamespaceOperationEvent.

TIME_CREATED
Data type: uint64
Access type: Read-only

Unique value that indicates the time that an event is generated. This is a 64-bit value that represents the number of 100-nanosecond intervals after January 1, 1601. The information is in the Coordinated Universal Time (UTC) format. This property is inherited from __Event.

Windows 2000, Windows NT Server, and Windows Me/98/95:  This property is not available.

For more information about using uint64 values in scripts, see Scripting in WMI.

Remarks

The __NamespaceModificationEvent class is derived from __NamespaceOperationEvent.

The only differences between the target namespace and the previous namespace is the qualifiers and properties except Name.

Note that the Name property of a __Namespace instance cannot change because namespaces cannot be renamed. To modify the name of a namespace, the __Namespace instance must be deleted and re-created with a new name. Therefore, namespace modification events are generated when a change occurs to qualifiers and properties other than Name. A namespace modification event is not generated when any kind of change occurs within the namespace. A namespace modification event is generated only when a namespace instance is modified.

Examples

For script code examples, see WMI Tasks for Scripts and Applications and the TechNet ScriptCenter Script Repository.

For C++ code examples, see WMI C++ Application Examples.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Namespace

all WMI namespaces

See also

WMI System Classes

 

 

Send comments about this topic to Microsoft

Build date: 11/19/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.