Apache.NMS.Util.SessionUtil.DeleteDestination C# (CSharp) Method

DeleteDestination() public static method

Delete the named destination by parsing the embedded type prefix. Default is Queue if no prefix is embedded in the destinationName.
public static DeleteDestination ( ISession session, string destinationName ) : void
session ISession Session object to use to get the destination.
destinationName string Name of destination with embedded prefix. The embedded prefix can be one of the following: /// /// queue:// /// topic:// /// temp-queue:// /// temp-topic:// /// ///
return void
        public static void DeleteDestination(ISession session, string destinationName)
        {
            SessionUtil.DeleteDestination(session, destinationName, DestinationType.Queue);
        }

Same methods

SessionUtil::DeleteDestination ( ISession session, string destinationName, DestinationType defaultType ) : void

Usage Example

Beispiel #1
0
 /// <summary>
 /// Delete the named destination by parsing the embedded type prefix.  Default is Queue if no prefix is
 /// embedded in the destinationName.
 /// </summary>
 /// <param name="session">Session object to use to get the destination.</param>
 /// <param name="destinationName">Name of destination with embedded prefix.  The embedded prefix can be one of the following:
 ///		<list type="bullet">
 ///			<item>queue://</item>
 ///			<item>topic://</item>
 ///			<item>temp-queue://</item>
 ///			<item>temp-topic://</item>
 ///		</list>
 ///	</param>
 /// <returns></returns>
 public static void DeleteDestination(ISession session, string destinationName)
 {
     SessionUtil.DeleteDestination(session, destinationName, DestinationType.Queue);
 }