AddInToken.EnableDirectConnect Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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
Available since 3.5
Return to top
Show: