Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Deletes a file share on the current server.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Sub DeleteFileShare ( _
name As String _
)
'Usage
Dim name As StringSPServer.DeleteFileShare(name)
public static void DeleteFileShare(
string name
)
Parameters
name
Type: System.StringThe name of the share, like "public". Must not be null or empty.
Exceptions
| Exception | Condition |
|---|---|
| Win32Exception | An exception containing details of the Win32 API error. |
Remarks
This operation does not delete the underlying directory.