次の方法で共有


MSFT_SmbShareChangeEvent class

This is an indication class. Any subscriber to it will receive an indication whenever a share is created, deleted, or modified.

The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties.

Syntax

[Indication, dynamic, provider("smbwmiv2"), ClassVersion("7")]
class MSFT_SmbShareChangeEvent
{
  uint32        EventType;
  MSFT_SmbShare Share;
};

Members

The MSFT_SmbShareChangeEvent class has these types of members:

Properties

The MSFT_SmbShareChangeEvent class has these properties.

EventType

Data type: uint32

Access type: Read-only

The event type.

Add (0)

Modify (1)

Remove (2)

Share

Data type: MSFT_SmbShare

Access type: Read-only

Qualifiers: EmbeddedInstance ("MSFT_SmbShare")

An instance of the MSFT_SmbShare class that represents the share.

Remarks

Note

Subscribers must be administrators.

Requirements

Minimum supported client
Windows 8
Minimum supported server
Windows Server 2012
Namespace
Root\Microsoft\Windows\Smb
MOF
SmbWmiV2.mof
DLL
SmbWmiV2.dll