Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Container Methods

Container Methods

The Container type exposes the following members.

  Name Description
Public method Supported by the XNA Framework Add(IComponent) Adds the specified Component to the Container. The component is unnamed.
Public method Supported by the XNA Framework Add(IComponent, String) Adds the specified Component to the Container and assigns it a name.
Protected method Supported by the XNA Framework CreateSite Creates a site ISite for the given IComponent and assigns the given name to the site.
Public method Supported by the XNA Framework Dispose() Releases all resources used by the Container.
Protected method Supported by the XNA Framework Dispose(Boolean) Releases the unmanaged resources used by the Container, and optionally releases the managed resources.
Public method Supported by the XNA Framework Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Supported by the XNA Framework Finalize Releases unmanaged resources and performs other cleanup operations before the Container is reclaimed by garbage collection. (Overrides Object.Finalize().)
Public method Supported by the XNA Framework GetHashCode Serves as the default hash function. (Inherited from Object.)
Protected method Supported by the XNA Framework GetService Gets the service object of the specified type, if it is available.
Public method Supported by the XNA Framework GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method Supported by the XNA Framework MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Supported by the XNA Framework Remove Removes a component from the Container.
Protected method RemoveWithoutUnsiting Removes a component from the Container without setting Site to null.
Public method Supported by the XNA Framework ToString Returns a string that represents the current object. (Inherited from Object.)
Protected method ValidateName Determines whether the component name is unique for this container.
Top
Show:
© 2015 Microsoft