次の方法で共有


Delete method of the MSFT_SMFileSystem class

Deletes the file system.

Syntax

UInt32 Delete(
  [in]            Boolean               RunAsJob,
  [out]           MSFT_SMJob        REF CreatedStorageJob,
  [out, optional] MSFT_SMExtendedStatus ExtendedStatus
);

Parameters

RunAsJob [in]

True to start a job that deletes the file system asynchronously; otherwise, False.

CreatedStorageJob [out]

A reference to the MSFT_SMJob instance that was created by RunAsJob. If the job is completed, this property can be set to NULL.

ExtendedStatus [out, optional]

An MSFT_SMExtendedStatus object that contains the results of calling this method.

Return value

Returns "0" on success, otherwise returns a WMI error code.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2016
Namespace
Root\Microsoft\Windows\Storage\SM
MOF
MsftStrgMan.mof
DLL
StorageService.dll

See also

MSFT_SMFileSystem