iwantedue.OutlookStorage.Message.Disposing C# (CSharp) Method

Disposing() protected method

protected Disposing ( ) : void
return void
            protected override void Disposing()
            {
                //dispose sub storages
                foreach (OutlookStorage subMsg in this.messages)
                {
                    subMsg.Dispose();
                }

                //dispose sub storages
                foreach (OutlookStorage recip in this.recipients)
                {
                    recip.Dispose();
                }

                //dispose sub storages
                foreach (OutlookStorage attach in this.attachments)
                {
                    attach.Dispose();
                }
            }