Dispose Method
Collapse the table of content
Expand the table of content

IndexBuffer.Dispose Method

Immediately releases the unmanaged resources used by this object.

NameDescription
IndexBuffer.Dispose (Boolean) Immediately releases the unmanaged resources used by this object.

Call Dispose when you are finished using the IndexBuffer. The Dispose method leaves the IndexBuffer in an unusable state. After calling Dispose, you must release all references to the IndexBuffer so the garbage collector can reclaim the memory that the IndexBuffer was occupying.

Bb196264.note(en-us,XNAGameStudio.41).gifNote
Always call Dispose before you release your last reference to the IndexBuffer. Otherwise, the resources it is using will not be freed until the garbage collector calls the IndexBuffer object's Finalize method.

Community Additions

ADD
Show:
© 2016 Microsoft