Table of Contents

Method AddHostObject

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

AddHostObject(object)

Adds a host object to the collection of context menu hosts if it is not already present.

public virtual void AddHostObject(object host)

Parameters

host object

The host object to add. Cannot be null.

Remarks

This method ensures that the specified host object is added only once to the collection.

Exceptions

ArgumentNullException

Thrown if host is null.