フォルダの共有を解除します。
Namespace: YiaoWang.UtilityAssembly: YiaoWang.Utility (YiaoWang.Utility.dll 内) バージョン: 2.11.5.7 (2.11.5.7)
Syntax
C# |
---|
public static void NetShareDel( string serverName, string shareName ) |
Visual Basic |
---|
Public Shared Sub NetShareDel ( _ serverName As String, _ shareName As String _ ) |
Parameters
- serverName
- Type: System..::..String
サーバー名。(null の場合、ローカルPCに作成)
- shareName
- Type: System..::..String
共有名。
Remarks
Administrators または Account Operators ローカルグループのメンバ、あるいは
Communication Operators、Print Operators、Server Operators のいずれかのグループの
メンバだけがこの関数を実行できます。
Print Operator はプリンタキューだけを追加/削除できます。
Communication Operator は、通信デバイスキューだけを追加/削除できます。
Exceptions
Exception | Condition |
---|---|
System..::..SystemException | 共有フォルダ削除失敗。 |