This documentation is archived and is not being maintained.

AddInToken.EnableDirectConnect Property

Gets and sets a value that indicates whether add-ins should be directly connected to their hosts when conditions permit.

Namespace:  System.AddIn.Hosting
Assembly:  System.AddIn (in System.AddIn.dll)

public static bool EnableDirectConnect { get; set; }

Property Value

Type: System.Boolean
true if the add-in should be directly connected to the host; otherwise, false. The default is false.

The following conditions must exist for the direct connection to occur:

  • This property must be set to true.

  • The add-in must be in the same application domain as the host.

  • The add-in view and the host view of the add-in must be the same type.

  • All the segments of the pipeline must be available.

When a direct connection is established, the add-in-side adapter and the host-side adapter are not instantiated.

.NET Framework

Supported in: 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.