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.

  NameDescription
Public methodSupported by the XNA FrameworkMarshalByValueComponentInitializes a new instance of the MarshalByValueComponent class.
Top

  NameDescription
Public propertySupported by the XNA FrameworkContainerGets the container for the component.
Public propertySupported by the XNA FrameworkDesignModeGets a value indicating whether the component is currently in design mode.
Protected propertySupported by the XNA FrameworkEventsGets the list of event handlers that are attached to this component.
Public propertySupported by the XNA FrameworkSiteGets or sets the site of the component.
Top

  NameDescription
Public methodSupported by the XNA FrameworkDispose()Releases all resources used by the MarshalByValueComponent.
Protected methodSupported by the XNA FrameworkDispose(Boolean)Releases the unmanaged resources used by the MarshalByValueComponent and optionally releases the managed resources.
Public methodSupported by the XNA FrameworkEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodSupported by the XNA FrameworkFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Overrides Object.Finalize().)
Public methodSupported by the XNA FrameworkGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodSupported by the XNA FrameworkGetServiceGets the implementer of the IServiceProvider.
Public methodSupported by the XNA FrameworkGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodSupported by the XNA FrameworkMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSupported by the XNA FrameworkToStringReturns a String containing the name of the Component, if any. This method should not be overridden. (Overrides Object.ToString().)
Top

  NameDescription
Public eventSupported by the XNA FrameworkDisposedAdds 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.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft