다음을 통해 공유


SPServer.CreateSecureDirectory method

Creates a directory in the local file system with all the correct access control lists (ACLs) to secure access for local administrators and members of the local administration worker process group.

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

Syntax

'Declaration
<PermissionSetAttribute(SecurityAction.Demand, Name := "FullTrust")> _
Public Shared Function CreateSecureDirectory ( _
    path As String _
) As DirectoryInfo
'Usage
Dim path As String
Dim returnValue As DirectoryInfo

returnValue = SPServer.CreateSecureDirectory(path)
[PermissionSetAttribute(SecurityAction.Demand, Name = "FullTrust")]
public static DirectoryInfo CreateSecureDirectory(
    string path
)

Parameters

  • path
    Type: System.String

    A string that specifies the full path of the directory to create.

Return value

Type: System.IO.DirectoryInfo
If the specified directory already exists, the ACLs of the directory are reset, but no exception is thrown.

See also

Reference

SPServer class

SPServer members

Microsoft.SharePoint.Administration namespace