This example shows the contents of a .tbp file exposing three different plugin classes from the library VbSample.dll:
<?xml version="1.0" encoding="utf-8"?> <PlugIn> <ApplicationPlugIn ClassName="MyApplication1" AssemblyName="VbSample.dll" Namespace="VbSample" DocumentKey="" MapName="" Priority="100" ExecutionTargetWeb="True" ExecutionTargetDesktop="True" Company="" Author="Michael Ross"/> <ApplicationPlugIn ClassName="MyApplication2" DocumentKey="" MapName="" Priority="100" AssemblyName="VbSample.dll" Namespace="VbSample" ExecutionTargetWeb="True" ExecutionTargetDesktop="True" Company=”My SAmple Company" Author="Michael Ross"/> <DocumentPlugIn ClassName="MyDocument" AssemblyName="VbSample.dll" Namespace="VbSample" DocumentKey="" MapName="" Priority="100" ExecutionTargetWeb="True" ExecutionTargetDesktop="True" Company="My Sample Company" Author="Michael Ross"/> </PlugIn>
<?xml version="1.0" encoding="utf-8"?> <PlugIn> <ApplicationPlugIn ClassName="MyApplication1"/> <ApplicationPlugIn ClassName="MyApplication2"/> <DocumentPlugIn ClassName="MyDocument"/> </PlugIn>
You can use the Default tag to define properties used by all plugin classes in the library. To overwrite a single property, include the correct attribute within the plugin tag.
The following example is the same .tbp file rewritten to use the Default tag:
<?xml version="1.0" encoding="utf-8"?> <PlugIn> <Default AssemblyName="VbSample.dll" Namespace="VbSample" DocumentKey="" MapName="" Priority="100" ExecutionTargetWeb="True" ExecutionTargetDesktop="True" Company="My Sample Company" Author="Michael Ross" /> <ApplicationPlugIn ClassName="MyApplication1"/> <ApplicationPlugIn ClassName="MyApplication2" Author="Peter Puck"/> <DocumentPlugIn ClassName="MyDocument"/> </PlugIn>