Beispiel #1
0
 protected override void Dispose(bool disposing)
 {
     if (audioStreamVolumeInterface != null)
     {
         ReleaseComObject(audioStreamVolumeInterface);
         audioStreamVolumeInterface = null;
     }
 }
Beispiel #2
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing && this.audioStreamVolumeInterface != null)
     {
         Marshal.ReleaseComObject(this.audioStreamVolumeInterface);
         this.audioStreamVolumeInterface = null;
     }
 }
Beispiel #3
0
 /// <summary>
 /// Release/cleanup objects during Dispose/finalization.
 /// </summary>
 /// <param name="disposing">True if disposing and false if being finalized.</param>
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (audioStreamVolumeInterface != null)
         {
             // although GC would do this for us, we want it done now
             Marshal.ReleaseComObject(audioStreamVolumeInterface);
             audioStreamVolumeInterface = null;
         }
     }
 }
Beispiel #4
0
 internal AudioStreamVolume(IAudioStreamVolume audioStreamVolumeInterface)
 {
     this.audioStreamVolumeInterface = audioStreamVolumeInterface;
 }
 internal AudioStreamVolume(IAudioStreamVolume parent)
 {
     _RealVolume = parent;
 }
 internal AudioStreamVolume(IAudioStreamVolume audioStreamVolumeInterface)
 {
     this.audioStreamVolumeInterface = audioStreamVolumeInterface;
 }
 /// <summary>
 /// Release/cleanup objects during Dispose/finalization.
 /// </summary>
 /// <param name="disposing">True if disposing and false if being finalized.</param>
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (audioStreamVolumeInterface != null)
         {
             // although GC would do this for us, we want it done now
             Marshal.ReleaseComObject(audioStreamVolumeInterface);
             audioStreamVolumeInterface = null;
         }
     }
 }
Beispiel #8
0
 internal AudioStreamVolume(IAudioStreamVolume parent)
 {
     _RealVolume = parent;
 }