SPServer.CreateFileShare 方法
创建一个共享的目录。
命名空间: Microsoft.SharePoint.Administration
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Shared Sub CreateFileShare ( _
name As String, _
description As String, _
path As String _
)
用法
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
)
参数
name
类型:System.String文件共享的名称。不能为 null 或为空。
description
类型:System.String文件共享的说明。可以为 null 或为空。
path
类型:System.String要共享的目录的完整路径。
备注
如果不存在,将创建该目录。将设置的目录的 ACL 允许访问本地管理员和本地管理工作流程组的成员。共享允许写入的本地工作人员的进程组的成员。