Win32_ClusterShare 类的 Create 方法
创建新的 Win32_ClusterShare 实例。
语法
static uint32 Create(
[in] string Path,
[in] string Name,
[in] uint32 Type,
[in, optional] uint32 MaximumAllowed,
[in, optional] string Description,
[in, optional] string Password,
[in, optional] Win32_SecurityDescriptor Access
);
参数
-
路径 [in]
-
Windows 共享的本地路径。
示例“C:\Program Files”。
-
Name [in]
-
在运行 Windows 的计算机系统上设置为共享的路径的别名。
示例“public”。
-
键入 [in]
-
要共享的资源的类型。 类型包括:磁盘驱动器、打印队列、进程间通信 (IPC) 和常规设备。
-
0 (0x0)
-
磁盘驱动器
-
1 (0x1)
-
打印队列
-
2 (0x2)
-
设备
-
3 (0x3)
-
IPC
-
2147483648 (0x80000000)
-
磁盘驱动器管理员
-
2147483649 (0x80000001)
-
打印队列管理员
-
2147483650 (0x80000002)
-
设备管理员
-
2147483651 (0x80000003)
-
IPC 管理员
MaximumAllowed [in, optional]
限制允许并发使用此资源的最大用户数。
Description [in, optional]
对象的说明。
密码 [in,可选]
TBD
Access [in, optional]
包含新共享的安全描述符的 Win32_SecurityDescriptor 类的可选嵌入实例。
要求
要求 | 值 |
---|---|
最低受支持的客户端 |
Windows 7 |
最低受支持的服务器 |
Windows Server 2008 R2 |
命名空间 |
Root\CIMV2 |
MOF |
|
DLL |
|