/// <summary> /// Initializes the SongPositionPointerBuilder with the specified /// SysCommonMessage. /// </summary> /// <param name="message"> /// The SysCommonMessage to use to initialize the /// SongPositionPointerBuilder. /// </param> /// <exception cref="ArgumentException"> /// If the SysCommonMessage is not a song position pointer message. /// </exception> public void Initialize(SysCommonMessage message) { #region Require if (message == null) { throw new ArgumentNullException("message"); } else if (message.SysCommonType != SysCommonType.SongPositionPointer) { throw new ArgumentException( "Message is not a song position pointer message."); } #endregion builder.Initialize(message); }
/// <summary> /// Initializes the SongPositionPointerBuilder with the specified /// SysCommonMessage. /// </summary> /// <param name="message"> /// The SysCommonMessage to use to initialize the /// SongPositionPointerBuilder. /// </param> /// <exception cref="ArgumentException"> /// If the SysCommonMessage is not a song position pointer message. /// </exception> public void Initialize(SysCommonMessage message) { builder.Initialize(message); }