Share via


SPServer.CreateFileShare method

Creates a shared directory.

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

Syntax

'Declaration
Public Shared Sub CreateFileShare ( _
    name As String, _
    description As String, _
    path As String _
)
'Usage
Dim name As String
Dim description As String
Dim path As StringSPServer.CreateFileShare(name, description, _
    path)
public static void CreateFileShare(
    string name,
    string description,
    string path
)

Parameters

  • name
    Type: System.String

    A file share name. Must not be null or empty.

  • description
    Type: System.String

    Description for file share. Can be null or empty.

  • path
    Type: System.String

    The full path to the directory to be shared.

Remarks

The directory will be created if it does not already exist. The ACL of the directory will be set to allow access to local administrators and members of the local administration worker process group. The share allows writing by members of the local worker process group.

See also

Reference

SPServer class

SPServer members

Microsoft.SharePoint.Administration namespace