Share via


ManagedLibrary Element (ProxyGen)

Represents the contents of a managed assembly that contains the host application's object model.

<ManagedLibrary
  <Class>...</Class>
  <Delegate>...</Delegate>
  <Enum>...</Enum>
  <Exception>...</Exception>
  <Interface>...</Interface>
  <Struct>...</Struct>
</ManagedLibrary>

ManagedLibrary_Type

Attributes and Elements

The following sections describe attributes, child elements, and parent elements.

Attributes

None.

Child Elements

Element

Description

Class

Optional ManagedEntryPoint_Type element.

Represents a proxy class for a managed class.

Delegate

Optional ManagedDelegate_Type element.

Represents a proxy delegate for a managed delegate that is not defined in a parent class.

Enum

Optional Enum_Type element.

Represents a proxy enumeration for a managed enumeration.

Exception

Optional Exception_Type element.

Represents a proxy exception that maps to an exception in the host application's object model.

Interface

Optional ManagedEntryPoint_Type element.

Represents a proxy interface for a managed interface.

Struct

Optional ManagedType_Type element.

Represents a proxy struct for a managed struct.

Note

When you use ProxyGen.exe to generate a proxy code file, it generates a class, rather than a struct, for every Struct element. For more information, see Proxies for Managed Assemblies.

Parent Elements

Element

Description

Library

Required root element of the proxy descriptor file.

Element Information

Namespace

https://schemas.microsoft.com/vsta/2008/01/ProxyGenDescriptor

Schema name

ProxyGen Descriptor

Validation file

ProxyGenDescriptorv2.xsd

Can be empty

Yes

See Also

Concepts

ProxyGen Descriptor Schema Reference

Creating Proxies

Defining Entry Points and Other Proxy Changes