Share via


DeleteShare method of the MSNFS_Export class

[The NFS Legacy WMI Classes are no longer available as of Windows Server 2012. Instead, use the NFS WMI Classes.]

Stops the export of an NFS share. After this method is invoked, the specified path will no longer be shared by the Server for NFS service.

Syntax

uint32 DeleteShare(
  [in] string PathName
);

Parameters

PathName [in]

The local path to the export that the Server for NFS service will stop sharing.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2008 R2
End of client support
None supported
End of server support
Windows Server 2008 R2
Namespace
Root\MSNFS
Header
Shobjidl_core.h
MOF
Nfswmi.mof
DLL
NfsCimProv.dll

See also

MSNFS_Export