Bagikan melalui


SoundEffectInstance.Dispose Method (Boolean)

Releases the unmanaged resources held by this SoundEffectInstance, and optionally releases the managed resources.

Syntax

'Declaration
Protected Overridable Sub Dispose ( _
         disposing As Boolean _
)
protected virtual void Dispose (
         bool disposing
)
protected:
virtual void Dispose(
         bool disposing
)

Parameters

  • disposing
    Type: Boolean
    Pass true to release both the managed and unmanaged resources for this SoundEffectInstance. Passing false releases only the unmanaged resources.

Requirements

Namespace: Microsoft.Xna.Framework.Audio

Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

See Also

Reference

SoundEffectInstance Class
SoundEffectInstance Members
Microsoft.Xna.Framework.Audio Namespace

Platforms

Windows Phone