現在の UserPermission オブジェクトをフォームのアクセス許可から削除します。
名前空間: Microsoft.Office.Interop.InfoPath
アセンブリ: Microsoft.Office.Interop.InfoPath (microsoft.office.interop.infopath.dll 内)
構文
'宣言
<DispIdAttribute(4)> _
Sub Remove
'使用
Dim instance As UserPermission
instance.Remove
[DispIdAttribute(4)]
void Remove ()
例
次の例では、現在のフォームの Permission コレクションから取得した UserPermission オブジェクト、および Remove メソッドを使用して、ユーザーを削除します。
_XDocument3 thisDoc = (_XDocument3)thisXDocument;
UserPermission thisUser =
thisDoc.Permission["someone@example.com"];
thisUser.Remove();
Dim thisDoc As _XDocument3 = DirectCast(thisXDocument, _XDocument3)
UserPermission thisUser =
Permission.UserPermissions("someone@example.com")
thisUser.Remove()
関連項目
参照
UserPermission インターフェイス
UserPermission のメンバ
Microsoft.Office.Interop.InfoPath 名前空間