AddInToken.EnableDirectConnect Property

Definition

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

public:
 static property bool EnableDirectConnect { bool get(); void set(bool value); };
public static bool EnableDirectConnect { get; set; }
member this.EnableDirectConnect : bool with get, set
Public Shared Property EnableDirectConnect As Boolean

Property Value

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

Remarks

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.

Applies to