共用方式為


Permission.RemoveAll 方法

移除與表單關聯的所有 UserPermission 物件。

**命名空間:**Microsoft.Office.Interop.InfoPath
**組件:**Microsoft.Office.Interop.InfoPath (於 microsoft.office.interop.infopath.dll 中)

語法

'宣告
<DispIdAttribute(5)> _
Sub RemoveAll
'用途
Dim instance As Permission

instance.RemoveAll
[DispIdAttribute(5)] 
void RemoveAll ()

範例

在下列範例中,使用 RemoveAll 方法從表單中移除所有使用者。

_XDocument3 thisDoc = (_XDocument3)thisXDocument;
thisDoc.Permission.RemoveAll();
Dim thisDoc As _XDocument3 = DirectCast(thisXDocument, _XDocument3)
thisDoc.Permission.RemoveAll()

請參閱

參考

Permission 介面
Permission 成員
Microsoft.Office.Interop.InfoPath 命名空間