Revit 2018 API |
Connector..::..DisconnectFrom Method |
Connector Class See Also |
Remove connection between two connectors.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 18.0.0.0 (18.0.0.420)
Syntax
C# |
---|
public void DisconnectFrom( Connector connector ) |
Visual Basic |
---|
Public Sub DisconnectFrom ( _ connector As Connector _ ) |
Visual C++ |
---|
public: void DisconnectFrom( Connector^ connector ) |
Parameters
- connector
- Type: Autodesk.Revit.DB..::..Connector
Indicate the connector, connection will be removed from.
Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.Exceptions..::..ArgumentNullException | Thrown when argument is nullNothingnullptra null reference (Nothing in Visual Basic). |
Autodesk.Revit.Exceptions..::..ArgumentException | Argument is invalid. |
Autodesk.Revit.Exceptions..::..InvalidOperationException | Thrown when no connection between these two connector. Thrown on failure to remove the connection between these two connectors. |