System.Messaging Reference (Document! X Sample)
System.Messaging Namespace / MessageQueue Class / Delete Method
The location of the queue to be deleted.



In This Topic
    Delete Method
    In This Topic
    Deletes a queue on a Message Queuing server.
    Syntax
    'Declaration
     
    
    Public Shared Sub Delete( _
       ByVal path As String _
    ) 
    'Usage
     
    
    Dim path As String
     
    MessageQueue.Delete(path)
    public static void Delete( 
       string path
    )
    public:
    static void Delete( 
       String^ path
    ) 

    Parameters

    path
    The location of the queue to be deleted.
    Exceptions
    ExceptionDescription
    The path parameter is null or is an empty string ("").
    The syntax for the path parameter is not valid.-or- An error occurred when accessing a Message Queuing method.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also