Skip to main content
.NET Framework Class Library
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)
Syntax
<[%$TOPIC/53c82zyd_en-us_VS_110_3_0_0_0_0%](True)> _
<[%$TOPIC/53c82zyd_en-us_VS_110_3_0_0_0_1%](GetType([%$TOPIC/53c82zyd_en-us_VS_110_3_0_0_0_2%]))> _
Public Class MarshalByValueComponent _
	Implements [%$TOPIC/53c82zyd_en-us_VS_110_3_0_0_0_3%], [%$TOPIC/53c82zyd_en-us_VS_110_3_0_0_0_4%], [%$TOPIC/53c82zyd_en-us_VS_110_3_0_0_0_5%]
[[%$TOPIC/53c82zyd_en-us_VS_110_3_0_1_0_0%](true)]
[[%$TOPIC/53c82zyd_en-us_VS_110_3_0_1_0_1%](typeof([%$TOPIC/53c82zyd_en-us_VS_110_3_0_1_0_2%]))]
public class MarshalByValueComponent : [%$TOPIC/53c82zyd_en-us_VS_110_3_0_1_0_3%], 
	[%$TOPIC/53c82zyd_en-us_VS_110_3_0_1_0_4%], [%$TOPIC/53c82zyd_en-us_VS_110_3_0_1_0_5%]
[[%$TOPIC/53c82zyd_en-us_VS_110_3_0_2_0_0%](true)]
[[%$TOPIC/53c82zyd_en-us_VS_110_3_0_2_0_1%](typeof([%$TOPIC/53c82zyd_en-us_VS_110_3_0_2_0_2%]))]
public ref class MarshalByValueComponent : [%$TOPIC/53c82zyd_en-us_VS_110_3_0_2_0_3%], 
	[%$TOPIC/53c82zyd_en-us_VS_110_3_0_2_0_4%], [%$TOPIC/53c82zyd_en-us_VS_110_3_0_2_0_5%]
[<[%$TOPIC/53c82zyd_en-us_VS_110_3_0_3_0_0%](true)>]
[<[%$TOPIC/53c82zyd_en-us_VS_110_3_0_3_0_1%](typeof([%$TOPIC/53c82zyd_en-us_VS_110_3_0_3_0_2%]))>]
type MarshalByValueComponent =  
    class 
        interface [%$TOPIC/53c82zyd_en-us_VS_110_3_0_3_0_3%] 
        interface [%$TOPIC/53c82zyd_en-us_VS_110_3_0_3_0_4%] 
        interface [%$TOPIC/53c82zyd_en-us_VS_110_3_0_3_0_5%] 
    end

The MarshalByValueComponent type exposes the following members.

Constructors
  NameDescription
Public method Supported by the XNA Framework MarshalByValueComponentInitializes a new instance of the MarshalByValueComponent class.
Top
Properties
  NameDescription
Public property Supported by the XNA Framework ContainerGets the container for the component.
Public property Supported by the XNA Framework DesignModeGets a value indicating whether the component is currently in design mode.
Protected property Supported by the XNA Framework EventsGets the list of event handlers that are attached to this component.
Public property Supported by the XNA Framework SiteGets or sets the site of the component.
Top
Methods
  NameDescription
Public method Supported by the XNA Framework DisposeReleases 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 FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Overrides ObjectFinalize.)
Public method Supported by the XNA Framework GetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public method Supported by the XNA Framework GetServiceGets the implementer of the IServiceProvider.
Public method Supported by the XNA Framework GetTypeGets the Type of the current instance. (Inherited from Object.)
Protected method Supported by the XNA Framework MemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public method Supported by the XNA Framework ToStringReturns a String containing the name of the Component, if any. This method should not be overridden. (Overrides ObjectToString.)
Top
Events
  NameDescription
Public event Supported by the XNA Framework DisposedAdds an event handler to listen to the Disposed event on the component.
Top
Remarks

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.

Version Information

.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
Platforms

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.

Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.