Copies settings and event handlers from the repository item specified as a parameter.
public override void Assign( RepositoryItem item )
Public Overrides Sub Assign( item As RepositoryItem )
A RepositoryItem descendant representing the repository item whose settings are to be copied to the current item.
The Assign method allows you to create two or more RepositoryItemPopupContainerEdit objects with identical settings and event handlers.
The Assign method creates a reference copy of the RepositoryItemPopupContainerEdit.PopupControl property. This means that the two Repository Items will refer to the same PopupControl after the copy. When disposing of one of the Repository Items, the associated PopupControl is also disposed of, regardless of whether another Repository Item is alive. To prevent the PopupControl from being disposed of, create a copy of a Repository Item object via the RepositoryItem.Clone method.