Make connection between two connectors. 
   Namespace:   Autodesk.Revit.DB  
  Assembly:   RevitAPI  (in RevitAPI.dll) Version: 2015.0.0.0 (2015.0.0.0) 
Syntax
| C# | 
|---|
|  | 
| Visual Basic | 
|---|
|  | 
| Visual C++ | 
|---|
|  | 
Parameters
- connector
-  Type:  Autodesk.Revit.DB Connector  
 Indicate the connector will be connected to.
Remarks
 Connection success may create a new Fitting between two connectors, if necessary. 
 Exceptions
| Exception | Condition | 
|---|---|
| Autodesk.Revit.Exceptions ArgumentNullException | Thrown when argument is a null reference ( Nothing in Visual Basic) . | 
| Autodesk.Revit.Exceptions ArgumentException | Argument is invalid. | 
| Autodesk.Revit.Exceptions InvalidOperationException | Thrown when two connectors with different domain types. Thrown when these two connectors fail to connect each other. Thrown when connection already exists. |