FreeformActivityDesigner.AddConnector Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a connector to the FreeformActivityDesigner.
public:
System::Workflow::ComponentModel::Design::Connector ^ AddConnector(System::Workflow::ComponentModel::Design::ConnectionPoint ^ source, System::Workflow::ComponentModel::Design::ConnectionPoint ^ target);
public System.Workflow.ComponentModel.Design.Connector AddConnector(System.Workflow.ComponentModel.Design.ConnectionPoint source, System.Workflow.ComponentModel.Design.ConnectionPoint target);
member this.AddConnector : System.Workflow.ComponentModel.Design.ConnectionPoint * System.Workflow.ComponentModel.Design.ConnectionPoint -> System.Workflow.ComponentModel.Design.Connector
Public Function AddConnector (source As ConnectionPoint, target As ConnectionPoint) As Connector
Parameters
- source
- ConnectionPoint
The ConnectionPoint location to begin drawing the connector.
- target
- ConnectionPoint
The ConnectionPoint location to finish drawing the connector.
Returns
The Connector that was added to the FreeformActivityDesigner.
Exceptions
source or target contains a null reference (Nothing in Visual Basic).
The AssociatedDesigner property for source or target contains a null reference (Nothing).
The current FreeformActivityDesigner is not the container for the connector to add.
Remarks
AddConnector is called when a user adds a Connector to the FreeformActivityDesigner.