MessageType.Drop Method

Removes the Message type.

Namespace:  Microsoft.SqlServer.Management.Smo.Broker
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Sub Drop
'Usage
Dim instance As MessageType

instance.Drop()
public void Drop()
public:
virtual void Drop() sealed
abstract Drop : unit -> unit  
override Drop : unit -> unit
public final function Drop()

Implements

IDroppable.Drop()

Remarks

You must drop all the contracts that use the message type before it can be removed.

Examples

Readme_ServiceBrokerConfiguration

See Also

Reference

MessageType Class

Microsoft.SqlServer.Management.Smo.Broker Namespace

Other Resources

DEL - Development (Service Broker)

Managing Service Broker

Service Broker

CREATE MESSAGE TYPE (Transact-SQL)