This method publishes a message to a specific exchange.

Namespace:  Kaazing.AMQP
Assembly:  Kaazing.AMQP (in Kaazing.AMQP.dll)

Syntax

Visual Basic
Public Function PublishBasic ( _
	body As ByteBuffer, _
	properties As AmqpProperties, _
	exchange As String, _
	routingKey As String, _
	mandatory As Boolean, _
	immediate As Boolean, _
	callback As AmqpEventHandler _
) As AmqpChannel
C#
public AmqpChannel PublishBasic(
	ByteBuffer body,
	AmqpProperties properties,
	string exchange,
	string routingKey,
	bool mandatory,
	bool immediate,
	AmqpEventHandler callback
)
Visual C++
public:
AmqpChannel^ PublishBasic(
	ByteBuffer^ body, 
	AmqpProperties^ properties, 
	String^ exchange, 
	String^ routingKey, 
	bool mandatory, 
	bool immediate, 
	AmqpEventHandler^ callback
)

Parameters

body
Type: ByteBuffer
AMQP message payload
properties
Type: Kaazing.AMQP..::..AmqpProperties
AMQP content properties as AmqpProperties
exchange
Type: System..::..String
Exchange
routingKey
Type: System..::..String
Message routing key
mandatory
Type: System..::..Boolean
indicate mandatory routing
immediate
Type: System..::..Boolean
Request immitiate delivery
callback
Type: Kaazing.AMQP..::..AmqpEventHandler
Method to be called on success

Return Value

AmqpChannel

See Also