Share via


ObjectWrapper class

Defines the generic wrapper class that is used to access members of the CommandBars, Extension, and LanguageSettings objects.

Inheritance hierarchy

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

Namespace:  Microsoft.Office.Interop.InfoPath.SemiTrust
Assembly:  Microsoft.Office.Interop.InfoPath.SemiTrust (in Microsoft.Office.Interop.InfoPath.SemiTrust.dll)

Syntax

'Declaration
<SecurityPermissionAttribute(SecurityAction.Assert, Flags := SecurityPermissionFlag.UnmanagedCode)> _
Public Class ObjectWrapper _
    Inherits WrapperBase
'Usage
Dim instance As ObjectWrapper
[SecurityPermissionAttribute(SecurityAction.Assert, Flags = SecurityPermissionFlag.UnmanagedCode)]
public class ObjectWrapper : WrapperBase

Remarks

In the InfoPath COM object model, the CommandBars, Extension, and LanguageSettings objects are accessed with corresponding accessor properties of the Window, XDocument, and Application objects. This functionality is enabled through the Microsoft Office 11.0 Object Library, which is not available directly to the InfoPath managed-code assemblies.

Examples

To view an example of using the ObjectWrapper class to access members of the CommandBars object, see the CommandBars topic.

Thread safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See also

Reference

ObjectWrapper members

Microsoft.Office.Interop.InfoPath.SemiTrust namespace