Delete method of the MSFT_SMFileShare class
Deletes a file share.
Syntax
UInt32 Delete(
[in] Boolean RunAsJob,
[out] MSFT_SMJob REF CreatedStorageJob,
[out, optional] MSFT_SMExtendedStatus ExtendedStatus
);
Parameters
-
RunAsJob [in]
-
If True, start a job to delete the file share asynchronously.
-
CreatedStorageJob [out]
-
Reference to the MSFT_SMJob instance. May be NULL if the job is completed.
-
ExtendedStatus [out, optional]
-
An MSFT_SMExtendedStatus object containing the results of calling this method.
Return value
-
Success (0)
-
Not Supported (1)
-
Unspecified Error (2)
-
Timeout (3)
-
Failed (4)
-
Invalid Parameter (5)
-
Method Parameters Checked - Job Started (4096)
-
Size Not Supported (4097)
-
Access denied (40001)
-
There are not enough resources to complete the operation. (40002)
-
Cache out of date (40003)
Requirements
Minimum supported client |
None supported |
Minimum supported server |
Windows Server 2016 |
Namespace |
Root\Microsoft\Windows\Storage\SM |
MOF |
|
DLL |
|