Back to Devexpress

RepositoryItem.Disconnect(Object) Method

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitem-dot-disconnect-x28-system-dot-object-x29.md

latest2.1 KB
Original Source

RepositoryItem.Disconnect(Object) Method

Removes the connection between the repository item and the specified object.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public virtual void Disconnect(
    object connector
)
vb
Public Overridable Sub Disconnect(
    connector As Object
)

Parameters

NameTypeDescription
connectorObject

An object representing the control from which the repository item is disconnected.

|

Remarks

The Disconnect method is called by container controls to remove the connection between the repository item and a control’s element (a grid column, for instance). Calling this method decreases the RepositoryItem.LinkCount value by one. The repository item can only be deleted from a RepositoryItemCollection collection if it is not connected to any object (its RepositoryItem.LinkCount property value is 0 ).

See Also

Connect(Object)

LinkCount

RepositoryItem Class

RepositoryItem Members

DevExpress.XtraEditors.Repository Namespace