Share via


ObjectWrapper 类

定义用于访问 CommandBars、Extension 和 LanguageSettings 对象的成员的一般包装类。

继承层次结构

System.Object
  WrapperBase
    Microsoft.Office.Interop.InfoPath.SemiTrust.ObjectWrapper

命名空间:  Microsoft.Office.Interop.InfoPath.SemiTrust
程序集:  Microsoft.Office.Interop.InfoPath.SemiTrust(位于 Microsoft.Office.Interop.InfoPath.SemiTrust.dll 中)

语法

声明
<SecurityPermissionAttribute(SecurityAction.Assert, Flags := SecurityPermissionFlag.UnmanagedCode)> _
Public Class ObjectWrapper _
    Inherits WrapperBase
用法
Dim instance As ObjectWrapper
[SecurityPermissionAttribute(SecurityAction.Assert, Flags = SecurityPermissionFlag.UnmanagedCode)]
public class ObjectWrapper : WrapperBase

备注

在 InfoPath COM 对象模型中,可以使用 Window、XDocument 和 Application 对象的相应的访问器属性访问 CommandBars、Extension 和 LanguageSettings 对象。可通过 Microsoft Office 11.0 对象库(不能直接用于 InfoPath 托管代码程序集)启用该功能。

示例

若要查看使用 ObjectWrapper 类访问 CommandBars 对象的成员的示例,请参阅 CommandBars 主题。

线程安全性

该类型的任何公共 静态 (已共享 在 Visual Basic 中) 成员都是线程安全的。不保证任何实例成员都是线程安全的。

另请参阅

引用

ObjectWrapper 成员

Microsoft.Office.Interop.InfoPath.SemiTrust 命名空间