SetChannelModes() приватный Метод

private SetChannelModes ( IrcChannel channel, string modes, IEnumerable modeParameters = null ) : void
channel IrcChannel
modes string
modeParameters IEnumerable
Результат void
Пример #1
0
        /// <summary>
        ///     Sets the specified modes on the channel.
        /// </summary>
        /// <param name="modes">
        ///     The mode string that specifies mode changes, which takes the form
        ///     `( "+" / "-" ) *( mode character )`.
        /// </param>
        /// <param name="modeParameters">
        ///     A collection of parameters to he modes, or <see langword="null" /> for no
        ///     parameters.
        /// </param>
        /// <exception cref="ArgumentNullException"><paramref name="modes" /> is <see langword="null" />.</exception>
        public void SetModes(string modes, IEnumerable <string> modeParameters = null)
        {
            if (modes == null)
            {
                throw new ArgumentNullException("modes");
            }

            client.SetChannelModes(this, modes, modeParameters);
        }