Thresher 1.2 Class Documentation

Sender.Part Method (String, String[])

Leave the given channel.

[Visual Basic]
Overloads Public Sub Part( _
   ByVal reason As String, _
   ParamArray channels As String() _
)
[C#]
public void Part(
   string reason,
   params string[] channels
);

Parameters

reason
A goodbye message.
channels
One or more channels to leave.

Remarks

Possible Errors

Exceptions

Exception TypeCondition
ArgumentExceptionIf the channel name is not valid or the reason is null.

Example

            //Leave a single channel
            connection.Sender.Part("Goodbye", "#test" );
            //Leave several at once
            connection.Sender.Part( "Goodbye", "#test","#alpha",#"bravo" );
            

See Also

Sender Class | Sharkbite.Irc Namespace | Sender.Part Overload List | OnPart