Bewerken

Delen via


__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
{
  uint8       SECURITY_DESCRIPTOR[];
  __Namespace PreviousNamespace;
  uint8       SECURITY_DESCRIPTOR [];
  __Namespace TargetNamespace;
  uint64      TIME_CREATED;
};

Members

The __NamespaceModificationEvent class 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 used by the event provider to determine which users can receive the event. This property is inherited from __Event.

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.

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.

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.

Requirements

Requirement Value
Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Namespace
All WMI namespaces

See also

__NamespaceOperationEvent

WMI System Classes