MessageQueueInstaller.CopyFromComponent Method (IComponent)


Copies the property values of a MessageQueue component that are required at install time for a message queue.

Namespace:   System.Messaging
Assembly:  System.Messaging (in System.Messaging.dll)

public override void CopyFromComponent(
	IComponent component


Type: System.ComponentModel.IComponent

A IComponent to use as a template for the MessageQueueInstaller.

Exception Condition

The component associated with this MessageQueueInstaller is not a MessageQueue.

Typically, you do not call the methods of the MessageQueueInstaller from within your code; they are generally called only by the installutil.exe installation utility. CopyFromComponent is used by the installation utility to set the property values for the MessageQueueInstaller to the values of an existing MessageQueue.

If the Path of the MessageQueue that is passed in is an empty string (""), you must set the Path property to a non-empty value before the installer executes.

.NET Framework
Available since 1.1
Return to top