0 out of 2 rated this helpful - Rate this topic

MarshalByValueComponent Class

Implements IComponent and provides the base implementation for remotable components that are marshaled by value (a copy of the serialized object is passed).

Namespace:  System.ComponentModel
Assembly:  System (in System.dll)
[ComVisibleAttribute(true)]
[TypeConverterAttribute(typeof(ComponentConverter))]
public class MarshalByValueComponent : IComponent, 
	IDisposable, IServiceProvider

The MarshalByValueComponent type exposes the following members.

  Name Description
Public method Supported by the XNA Framework MarshalByValueComponent Initializes a new instance of the MarshalByValueComponent class.
Top
  Name Description
Public property Supported by the XNA Framework Container Gets the container for the component.
Public property Supported by the XNA Framework DesignMode Gets a value indicating whether the component is currently in design mode.
Protected property Supported by the XNA Framework Events Gets the list of event handlers that are attached to this component.
Public property Supported by the XNA Framework Site Gets or sets the site of the component.
Top
  Name Description
Public method Supported by the XNA Framework Dispose() Releases all resources used by the MarshalByValueComponent.
Protected method Supported by the XNA Framework Dispose(Boolean) Releases the unmanaged resources used by the MarshalByValueComponent 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 Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Overrides Object.Finalize().)
Public method Supported by the XNA Framework GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method Supported by the XNA Framework GetService Gets the implementer of the IServiceProvider.
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 ToString Returns a String containing the name of the Component, if any. This method should not be overridden. (Overrides Object.ToString().)
Top
  Name Description
Public event Supported by the XNA Framework Disposed Adds an event handler to listen to the Disposed event on the component.
Top

A component can be contained in a container. For each component in a container, the container creates a site that it uses to manage the component. The component interacts with its container primarily through a container-provided ISite, which is a repository of container-specific, per-component information.

Notes to Inheritors

When you inherit from this class, you can override the Dispose, Site, and the GetService methods.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
hafardr@gmail.com
Enter comment hy5n yjmucmu