Export (0) Print
Expand All

SPServer.DeleteFileShare method

Deletes a file share on the current server.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public static void DeleteFileShare(
	string name
)

Parameters

name
Type: System.String

The name of the share, like "public". Must not be null or empty.

ExceptionCondition
Win32Exception

An exception containing details of the Win32 API error.

This operation does not delete the underlying directory.

Community Additions

ADD
Show:
© 2014 Microsoft