public DevicePropertyChangedEventArgs(string deviceID, PropertyKey propertyKey)
     : base(deviceID)
 {
 }
示例#2
0
        /// <summary>
        /// The OnPropertyValueChanged method indicates that the value of a property belonging to an
        /// audio endpoint device has changed.
        /// </summary>
        /// <param name="deviceId">The device id that identifies the audio endpoint device.</param>
        /// <param name="key">The <see cref="Win32.PropertyKey"/> that specifies the changed property.</param>        
        /// <returns>HRESULT</returns>
        void IMMNotificationClient.OnPropertyValueChanged(string deviceId, PropertyKey key)
        {
            if (DevicePropertyChanged != null)
                DevicePropertyChanged(this, new DevicePropertyChangedEventArgs(deviceId, key));

            //return (int) HResult.S_OK;
        }
示例#3
0
        /// <summary>
        /// The OnPropertyValueChanged method indicates that the value of a property belonging to an
        /// audio endpoint device has changed.
        /// </summary>
        /// <param name="deviceId">The device id that identifies the audio endpoint device.</param>
        /// <param name="key">The <see cref="Win32.PropertyKey"/> that specifies the changed property.</param>        
        /// <returns>HRESULT</returns>
        void IMMNotificationClient.OnPropertyValueChanged(string deviceId, PropertyKey key)
        {
            EventHandler<DevicePropertyChangedEventArgs> handler = this.DevicePropertyChanged;
            if (handler != null)
                handler(this, new DevicePropertyChangedEventArgs(deviceId, key));

            //return (int) HResult.S_OK;
        }