다음을 통해 공유


SPServer.DeleteFileShare method

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.String

    The 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.

See also

Reference

SPServer class

SPServer members

Microsoft.SharePoint.Administration namespace