Method AddHostObject
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
Remarks
This method ensures that the specified host object is added only once to the collection.
Exceptions
- ArgumentNullException
Thrown if
hostis null.