Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​AppDomain
Assembly: System.Runtime
Inheritance: object → MarshalByRefObject → AppDomain
Represents an application domain, which is an isolated environment where applications execute. This class cannot be inherited.
Properties
public
string
BaseDirectory
Gets the base directory that the assembly resolver uses to probe for assemblies.
public static
AppDomain
CurrentDomain
Gets the current application domain for the current <see cref="T:System.Threading.Thread" /> .
public
string
DynamicDirectory
Gets the directory that the assembly resolver uses to probe for dynamically created assemblies.
public
string
FriendlyName
Gets the friendly name of this application domain.
public
int
Id
Gets an integer that uniquely identifies the application domain within the process.
public
bool
IsFullyTrusted
Gets a value that indicates whether assemblies that are loaded into the current application domain execute with full trust.
public
bool
IsHomogenous
Gets a value that indicates whether the current application domain has a set of permissions that is granted to all assemblies that are loaded into the application domain.
public static
bool
MonitoringIsEnabled
Gets or sets a value that indicates whether CPU and memory monitoring of application domains is enabled for the current process. Once monitoring is enabled for a process, it cannot be disabled.
public
long
MonitoringSurvivedMemorySize
Gets the number of bytes that survived the last collection and that are known to be referenced by the current application domain.
public static
long
MonitoringSurvivedProcessMemorySize
Gets the total bytes that survived from the last collection for all application domains in the process.
public
long
MonitoringTotalAllocatedMemorySize
Gets the total size, in bytes, of all memory allocations that have been made by the application domain since it was created, without subtracting memory that has been collected.
public
TimeSpan
MonitoringTotalProcessorTime
Gets the total processor time that has been used by all threads while executing in the current application domain, since the process started.
public
PermissionSet
PermissionSet
Gets the permission set of a sandboxed application domain.
public
string
RelativeSearchPath
Gets the path under the base directory where the assembly resolver should probe for private assemblies.
public
AppDomainSetup
SetupInformation
Gets the application domain configuration information for this instance.
public
bool
ShadowCopyFiles
Gets an indication whether the application domain is configured to shadow copy files.
Methods
public
void
AppendPrivatePath​(string path)
Appends the specified directory name to the private path list.
path
The name of the directory to be appended to the private path.
public
string
ApplyPolicy​(string assemblyName)
Returns the assembly display name after policy has been applied.
Returns A string containing the assembly display name after policy has been applied.
assemblyName
The assembly display name, in the form provided by the <see cref="P:System.Reflection.Assembly.FullName" /> property.
public
void
ClearPrivatePath​()
Resets the path that specifies the location of private assemblies to the empty string ("").
public
void
ClearShadowCopyPath​()
Resets the list of directories containing shadow copied assemblies to the empty string ("").
public static
AppDomain
CreateDomain​(string friendlyName)
Creates a new application domain with the specified name.
Returns The newly created application domain.
friendlyName
The friendly name of the domain.
public
ObjectHandle
CreateInstance​(string assemblyName,
string typeName)
Creates a new instance of the specified type defined in the specified assembly.
Returns An object that is a wrapper for the new instance specified by <paramref name="typeName" /> . The return value needs to be unwrapped to access the real object.
assemblyName
The display name of the assembly. See <see cref="P:System.Reflection.Assembly.FullName" /> .
typeName
The fully qualified name of the requested type, including the namespace but not the assembly, as returned by the <see cref="P:System.Type.FullName" /> property.
public
ObjectHandle
CreateInstance​(string assemblyName,
string typeName,
bool ignoreCase,
BindingFlags bindingAttr,
Binder binder,
object[] args,
CultureInfo culture,
object[] activationAttributes)
Creates a new instance of the specified type defined in the specified assembly. Parameters specify a binder, binding flags, constructor arguments, culture-specific information used to interpret arguments, and optional activation attributes.
Returns An object that is a wrapper for the new instance specified by <paramref name="typeName" /> . The return value needs to be unwrapped to access the real object.
assemblyName
The display name of the assembly. See <see cref="P:System.Reflection.Assembly.FullName" /> .
typeName
The fully qualified name of the requested type, including the namespace but not the assembly, as returned by the <see cref="P:System.Type.FullName" /> property.
ignoreCase
A Boolean value specifying whether to perform a case-sensitive search or not.
bindingAttr
A combination of zero or more bit flags that affect the search for the <paramref name="typeName" /> constructor. If <paramref name="bindingAttr" /> is zero, a case-sensitive search for public constructors is conducted.
binder
An object that enables the binding, coercion of argument types, invocation of members, and retrieval of <see cref="T:System.Reflection.MemberInfo" /> objects using reflection. If <paramref name="binder" /> is null, the default binder is used.
args
The arguments to pass to the constructor. This array of arguments must match in number, order, and type the parameters of the constructor to invoke. If the parameterless constructor is preferred, <paramref name="args" /> must be an empty array or null.
culture
Culture-specific information that governs the coercion of <paramref name="args" /> to the formal types declared for the <paramref name="typeName" /> constructor. If <paramref name="culture" /> is <see langword="null" /> , the <see cref="T:System.Globalization.CultureInfo" /> for the current thread is used.
activationAttributes
An array of one or more attributes that can participate in activation. Typically, an array that contains a single <see cref="T:System.Runtime.Remoting.Activation.UrlAttribute" /> object that specifies the URL that is required to activate a remote object.
This parameter is related to client-activated objects. Client activation is a legacy technology that is retained for backward compatibility but is not recommended for new development. Distributed applications should instead use Windows Communication Foundation.
public
ObjectHandle
CreateInstance​(string assemblyName,
string typeName,
object[] activationAttributes)
Creates a new instance of the specified type defined in the specified assembly. A parameter specifies an array of activation attributes.
Returns An object that is a wrapper for the new instance specified by <paramref name="typeName" /> . The return value needs to be unwrapped to access the real object.
assemblyName
The display name of the assembly. See <see cref="P:System.Reflection.Assembly.FullName" /> .
typeName
The fully qualified name of the requested type, including the namespace but not the assembly, as returned by the <see cref="P:System.Type.FullName" /> property.
activationAttributes
An array of one or more attributes that can participate in activation. Typically, an array that contains a single <see cref="T:System.Runtime.Remoting.Activation.UrlAttribute" /> object that specifies the URL that is required to activate a remote object.
This parameter is related to client-activated objects.Client activation is a legacy technology that is retained for backward compatibility but is not recommended for new development. Distributed applications should instead use Windows Communication Foundation.
public
object
CreateInstanceAndUnwrap​(string assemblyName,
string typeName)
Creates a new instance of the specified type. Parameters specify the assembly where the type is defined, and the name of the type.
Returns An instance of the object specified by <paramref name="typeName" /> .
assemblyName
The display name of the assembly. See <see cref="P:System.Reflection.Assembly.FullName" /> .
typeName
The fully qualified name of the requested type, including the namespace but not the assembly, as returned by the <see cref="P:System.Type.FullName" /> property.
public
object
CreateInstanceAndUnwrap​(string assemblyName,
string typeName,
bool ignoreCase,
BindingFlags bindingAttr,
Binder binder,
object[] args,
CultureInfo culture,
object[] activationAttributes)
Creates a new instance of the specified type defined in the specified assembly, specifying whether the case of the type name is ignored; the binding attributes and the binder that are used to select the type to be created; the arguments of the constructor; the culture; and the activation attributes.
Returns An instance of the object specified by <paramref name="typeName" /> .
assemblyName
The display name of the assembly. See <see cref="P:System.Reflection.Assembly.FullName" /> .
typeName
The fully qualified name of the requested type, including the namespace but not the assembly, as returned by the <see cref="P:System.Type.FullName" /> property.
ignoreCase
A Boolean value specifying whether to perform a case-sensitive search or not.
bindingAttr
A combination of zero or more bit flags that affect the search for the <paramref name="typeName" /> constructor. If <paramref name="bindingAttr" /> is zero, a case-sensitive search for public constructors is conducted.
binder
An object that enables the binding, coercion of argument types, invocation of members, and retrieval of <see cref="T:System.Reflection.MemberInfo" /> objects using reflection. If <paramref name="binder" /> is null, the default binder is used.
args
The arguments to pass to the constructor. This array of arguments must match in number, order, and type the parameters of the constructor to invoke. If the parameterless constructor is preferred, <paramref name="args" /> must be an empty array or null.
culture
A culture-specific object used to govern the coercion of types. If <paramref name="culture" /> is <see langword="null" /> , the <see langword="CultureInfo" /> for the current thread is used.
activationAttributes
An array of one or more attributes that can participate in activation. Typically, an array that contains a single <see cref="T:System.Runtime.Remoting.Activation.UrlAttribute" /> object. that specifies the URL that is required to activate a remote object.
This parameter is related to client-activated objects. Client activation is a legacy technology that is retained for backward compatibility but is not recommended for new development. Distributed applications should instead use Windows Communication Foundation.
public
object
CreateInstanceAndUnwrap​(string assemblyName,
string typeName,
object[] activationAttributes)
Creates a new instance of the specified type. Parameters specify the assembly where the type is defined, the name of the type, and an array of activation attributes.
Returns An instance of the object specified by <paramref name="typeName" /> .
assemblyName
The display name of the assembly. See <see cref="P:System.Reflection.Assembly.FullName" /> .
typeName
The fully qualified name of the requested type, including the namespace but not the assembly, as returned by the <see cref="P:System.Type.FullName" /> property.
activationAttributes
An array of one or more attributes that can participate in activation. Typically, an array that contains a single <see cref="T:System.Runtime.Remoting.Activation.UrlAttribute" /> object that specifies the URL that is required to activate a remote object.
This parameter is related to client-activated objects.Client activation is a legacy technology that is retained for backward compatibility but is not recommended for new development. Distributed applications should instead use Windows Communication Foundation.
public
ObjectHandle
CreateInstanceFrom​(string assemblyFile,
string typeName)
Creates a new instance of the specified type defined in the specified assembly file.
Returns An object that is a wrapper for the new instance, or <see langword="null" /> if <paramref name="typeName" /> is not found. The return value needs to be unwrapped to access the real object.
assemblyFile
The name, including the path, of a file that contains an assembly that defines the requested type. The assembly is loaded using the <see cref="M:System.Reflection.Assembly.LoadFrom(System.String)" /> method.
typeName
The fully qualified name of the requested type, including the namespace but not the assembly, as returned by the <see cref="P:System.Type.FullName" /> property.
public
ObjectHandle
CreateInstanceFrom​(string assemblyFile,
string typeName,
bool ignoreCase,
BindingFlags bindingAttr,
Binder binder,
object[] args,
CultureInfo culture,
object[] activationAttributes)
Creates a new instance of the specified type defined in the specified assembly file.
Returns An object that is a wrapper for the new instance, or <see langword="null" /> if <paramref name="typeName" /> is not found. The return value needs to be unwrapped to access the real object.
assemblyFile
The name, including the path, of a file that contains an assembly that defines the requested type. The assembly is loaded using the <see cref="M:System.Reflection.Assembly.LoadFrom(System.String)" /> method.
typeName
The fully qualified name of the requested type, including the namespace but not the assembly, as returned by the <see cref="P:System.Type.FullName" /> property.
ignoreCase
A Boolean value specifying whether to perform a case-sensitive search or not.
bindingAttr
A combination of zero or more bit flags that affect the search for the <paramref name="typeName" /> constructor. If <paramref name="bindingAttr" /> is zero, a case-sensitive search for public constructors is conducted.
binder
An object that enables the binding, coercion of argument types, invocation of members, and retrieval of <see cref="T:System.Reflection.MemberInfo" /> objects through reflection. If <paramref name="binder" /> is null, the default binder is used.
args
The arguments to pass to the constructor. This array of arguments must match in number, order, and type the parameters of the constructor to invoke. If the parameterless constructor is preferred, <paramref name="args" /> must be an empty array or null.
culture
Culture-specific information that governs the coercion of <paramref name="args" /> to the formal types declared for the <paramref name="typeName" /> constructor. If <paramref name="culture" /> is <see langword="null" /> , the <see cref="T:System.Globalization.CultureInfo" /> for the current thread is used.
activationAttributes
An array of one or more attributes that can participate in activation. Typically, an array that contains a single <see cref="T:System.Runtime.Remoting.Activation.UrlAttribute" /> object that specifies the URL that is required to activate a remote object.
This parameter is related to client-activated objects. Client activation is a legacy technology that is retained for backward compatibility but is not recommended for new development. Distributed applications should instead use Windows Communication Foundation.
public
ObjectHandle
CreateInstanceFrom​(string assemblyFile,
string typeName,
object[] activationAttributes)
Creates a new instance of the specified type defined in the specified assembly file.
Returns An object that is a wrapper for the new instance, or <see langword="null" /> if <paramref name="typeName" /> is not found. The return value needs to be unwrapped to access the real object.
assemblyFile
The name, including the path, of a file that contains an assembly that defines the requested type. The assembly is loaded using the <see cref="M:System.Reflection.Assembly.LoadFrom(System.String)" /> method.
typeName
The fully qualified name of the requested type, including the namespace but not the assembly, as returned by the <see cref="P:System.Type.FullName" /> property.
activationAttributes
An array of one or more attributes that can participate in activation. Typically, an array that contains a single <see cref="T:System.Runtime.Remoting.Activation.UrlAttribute" /> object that specifies the URL that is required to activate a remote object.
This parameter is related to client-activated objects.Client activation is a legacy technology that is retained for backward compatibility but is not recommended for new development. Distributed applications should instead use Windows Communication Foundation.
public
object
CreateInstanceFromAndUnwrap​(string assemblyFile,
string typeName)
Creates a new instance of the specified type defined in the specified assembly file.
Returns The requested object, or <see langword="null" /> if <paramref name="typeName" /> is not found.
typeName
The fully qualified name of the requested type, including the namespace but not the assembly, as returned by the <see cref="P:System.Type.FullName" /> property.
public
object
CreateInstanceFromAndUnwrap​(string assemblyFile,
string typeName,
bool ignoreCase,
BindingFlags bindingAttr,
Binder binder,
object[] args,
CultureInfo culture,
object[] activationAttributes)
Creates a new instance of the specified type defined in the specified assembly file, specifying whether the case of the type name is ignored; the binding attributes and the binder that are used to select the type to be created; the arguments of the constructor; the culture; and the activation attributes.
Returns The requested object, or <see langword="null" /> if <paramref name="typeName" /> is not found.
assemblyFile
The file name and path of the assembly that defines the requested type.
typeName
The fully qualified name of the requested type, including the namespace but not the assembly, as returned by the <see cref="P:System.Type.FullName" /> property.
ignoreCase
A Boolean value specifying whether to perform a case-sensitive search or not.
bindingAttr
A combination of zero or more bit flags that affect the search for the <paramref name="typeName" /> constructor. If <paramref name="bindingAttr" /> is zero, a case-sensitive search for public constructors is conducted.
binder
An object that enables the binding, coercion of argument types, invocation of members, and retrieval of <see cref="T:System.Reflection.MemberInfo" /> objects through reflection. If <paramref name="binder" /> is null, the default binder is used.
args
The arguments to pass to the constructor. This array of arguments must match in number, order, and type the parameters of the constructor to invoke. If the parameterless constructor is preferred, <paramref name="args" /> must be an empty array or null.
culture
Culture-specific information that governs the coercion of <paramref name="args" /> to the formal types declared for the <paramref name="typeName" /> constructor. If <paramref name="culture" /> is <see langword="null" /> , the <see cref="T:System.Globalization.CultureInfo" /> for the current thread is used.
activationAttributes
An array of one or more attributes that can participate in activation. Typically, an array that contains a single <see cref="T:System.Runtime.Remoting.Activation.UrlAttribute" /> object that specifies the URL that is required to activate a remote object.
This parameter is related to client-activated objects. Client activation is a legacy technology that is retained for backward compatibility but is not recommended for new development. Distributed applications should instead use Windows Communication Foundation.
public
object
CreateInstanceFromAndUnwrap​(string assemblyFile,
string typeName,
object[] activationAttributes)
Creates a new instance of the specified type defined in the specified assembly file.
Returns The requested object, or <see langword="null" /> if <paramref name="typeName" /> is not found.
typeName
The fully qualified name of the requested type, including the namespace but not the assembly (see the <see cref="P:System.Type.FullName" /> property).
activationAttributes
An array of one or more attributes that can participate in activation. Typically, an array that contains a single <see cref="T:System.Runtime.Remoting.Activation.UrlAttribute" /> object that specifies the URL that is required to activate a remote object.
This parameter is related to client-activated objects.Client activation is a legacy technology that is retained for backward compatibility but is not recommended for new development. Distributed applications should instead use Windows Communication Foundation.
public
int
ExecuteAssembly​(string assemblyFile)
Executes the assembly contained in the specified file.
Returns The value returned by the entry point of the assembly.
assemblyFile
The name of the file that contains the assembly to execute.
public
int
ExecuteAssembly​(string assemblyFile,
string[] args)
Executes the assembly contained in the specified file, using the specified arguments.
Returns The value that is returned by the entry point of the assembly.
assemblyFile
The name of the file that contains the assembly to execute.
args
The arguments to the entry point of the assembly.
public
int
ExecuteAssembly​(string assemblyFile,
string[] args,
byte[] hashValue,
AssemblyHashAlgorithm hashAlgorithm)
Executes the assembly contained in the specified file, using the specified arguments, hash value, and hash algorithm.
Returns The value that is returned by the entry point of the assembly.
assemblyFile
The name of the file that contains the assembly to execute.
args
The arguments to the entry point of the assembly.
hashValue
Represents the value of the computed hash code.
hashAlgorithm
Represents the hash algorithm used by the assembly manifest.
public
int
ExecuteAssemblyByName​(AssemblyName assemblyName,
string[] args)
Executes the assembly given an <see cref="T:System.Reflection.AssemblyName" /> , using the specified arguments.
Returns The value that is returned by the entry point of the assembly.
assemblyName
An <see cref="T:System.Reflection.AssemblyName" /> object representing the name of the assembly.
args
Command-line arguments to pass when starting the process.
public
int
ExecuteAssemblyByName​(string assemblyName)
Executes an assembly given its display name.
Returns The value returned by the entry point of the assembly.
assemblyName
The display name of the assembly. See <see cref="P:System.Reflection.Assembly.FullName" /> .
public
int
ExecuteAssemblyByName​(string assemblyName,
string[] args)
Executes the assembly given its display name, using the specified arguments.
Returns The value that is returned by the entry point of the assembly.
assemblyName
The display name of the assembly. See <see cref="P:System.Reflection.Assembly.FullName" /> .
args
Command-line arguments to pass when starting the process.
public
Assembly[]
GetAssemblies​()
Gets the assemblies that have been loaded into the execution context of this application domain.
Returns An array of assemblies in this application domain.
public static
int
GetCurrentThreadId​()
Gets the current thread identifier.
Returns A 32-bit signed integer that is the identifier of the current thread.
public
object
GetData​(string name)
Gets the value stored in the current application domain for the specified name.
Returns The value of the <paramref name="name" /> property, or <see langword="null" /> if the property does not exist.
name
The name of a predefined application domain property, or the name of an application domain property you have defined.
public
bool?
IsCompatibilitySwitchSet​(string value)
Gets a nullable Boolean value that indicates whether any compatibility switches are set, and if so, whether the specified compatibility switch is set.
Returns A null reference ( <see langword="Nothing" /> in Visual Basic) if no compatibility switches are set; otherwise, a Boolean value that indicates whether the compatibility switch that is specified by <paramref name="value" /> is set.
value
The compatibility switch to test.
public
bool
IsDefaultAppDomain​()
Returns a value that indicates whether the application domain is the default application domain for the process.
Returns <see langword="true" /> if the current <see cref="T:System.AppDomain" /> object represents the default application domain for the process; otherwise, <see langword="false" /> .
public
bool
IsFinalizingForUnload​()
Indicates whether this application domain is unloading, and the objects it contains are being finalized by the common language runtime.
Returns <see langword="true" /> if this application domain is unloading and the common language runtime has started invoking finalizers; otherwise, <see langword="false" /> .
public
Assembly
Load​(byte[] rawAssembly)
Loads the <see cref="T:System.Reflection.Assembly" /> with a common object file format (COFF) based image containing an emitted <see cref="T:System.Reflection.Assembly" /> .
Returns The loaded assembly.
rawAssembly
An array of type <see langword="byte" /> that is a COFF-based image containing an emitted assembly.
public
Assembly
Load​(byte[] rawAssembly,
byte[] rawSymbolStore)
Loads the <see cref="T:System.Reflection.Assembly" /> with a common object file format (COFF) based image containing an emitted <see cref="T:System.Reflection.Assembly" /> . The raw bytes representing the symbols for the <see cref="T:System.Reflection.Assembly" /> are also loaded.
Returns The loaded assembly.
rawAssembly
An array of type <see langword="byte" /> that is a COFF-based image containing an emitted assembly.
rawSymbolStore
An array of type <see langword="byte" /> containing the raw bytes representing the symbols for the assembly.
public
Assembly
Load​(AssemblyName assemblyRef)
Loads an <see cref="T:System.Reflection.Assembly" /> given its <see cref="T:System.Reflection.AssemblyName" /> .
Returns The loaded assembly.
assemblyRef
An object that describes the assembly to load.
public
Assembly
Load​(string assemblyString)
Loads an <see cref="T:System.Reflection.Assembly" /> given its display name.
Returns The loaded assembly.
assemblyString
The display name of the assembly. See <see cref="P:System.Reflection.Assembly.FullName" /> .
public
Assembly[]
ReflectionOnlyGetAssemblies​()
Returns the assemblies that have been loaded into the reflection-only context of the application domain.
Returns An array of <see cref="T:System.Reflection.Assembly" /> objects that represent the assemblies loaded into the reflection-only context of the application domain.
public
void
SetCachePath​(string path)
Establishes the specified directory path as the location where assemblies are shadow copied.
path
The fully qualified path to the shadow copy location.
public
void
SetData​(string name,
object data)
Assigns the specified value to the specified application domain property.
name
The name of a user-defined application domain property to create or change.
data
The value of the property.
public
void
SetDynamicBase​(string path)
Establishes the specified directory path as the base directory for subdirectories where dynamically generated files are stored and accessed.
path
The fully qualified path that is the base directory for subdirectories where dynamic assemblies are stored.
public
void
SetPrincipalPolicy​(PrincipalPolicy policy)
Specifies how principal and identity objects should be attached to a thread if the thread attempts to bind to a principal while executing in this application domain.
policy
One of the <see cref="T:System.Security.Principal.PrincipalPolicy" /> values that specifies the type of the principal object to attach to threads.
public
void
SetShadowCopyFiles​()
Turns on shadow copying.
public
void
SetShadowCopyPath​(string path)
Establishes the specified directory path as the location of assemblies to be shadow copied.
path
A list of directory names, where each name is separated by a semicolon.
public
void
SetThreadPrincipal​(IPrincipal principal)
Sets the default principal object to be attached to threads if they attempt to bind to a principal while executing in this application domain.
principal
The principal object to attach to threads.
public
string
ToString​()
Obtains a string representation that includes the friendly name of the application domain and any context policies.
Returns A string formed by concatenating the literal string "Name:", the friendly name of the application domain, and either string representations of the context policies or the string "There are no context policies."
public static
void
Unload​(AppDomain domain)
Unloads the specified application domain.
domain
An application domain to unload.
public
object
GetLifetimeService​()
Inherited from MarshalByRefObject
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
Returns An object of type <see cref="T:System.Runtime.Remoting.Lifetime.ILease" /> used to control the lifetime policy for this instance.
public
object
InitializeLifetimeService​()
Inherited from MarshalByRefObject
Obtains a lifetime service object to control the lifetime policy for this instance.
Returns An object of type <see cref="T:System.Runtime.Remoting.Lifetime.ILease" /> used to control the lifetime policy for this instance. This is the current lifetime service object for this instance if one exists; otherwise, a new lifetime service object initialized to the value of the <see cref="P:System.Runtime.Remoting.Lifetime.LifetimeServices.LeaseManagerPollTime" /> property.
protected
MarshalByRefObject
MemberwiseClone​(bool cloneIdentity)
Inherited from MarshalByRefObject
Creates a shallow copy of the current <see cref="T:System.MarshalByRefObject" /> object.
Returns A shallow copy of the current <see cref="T:System.MarshalByRefObject" /> object.
cloneIdentity
<see langword="false" /> to delete the current <see cref="T:System.MarshalByRefObject" /> object's identity, which will cause the object to be assigned a new identity when it is marshaled across a remoting boundary. A value of <see langword="false" /> is usually appropriate. <see langword="true" /> to copy the current <see cref="T:System.MarshalByRefObject" /> object's identity to its clone, which will cause remoting client calls to be routed to the remote server object.
public
bool
Equals​(object obj)
Inherited from object
Determines whether the specified object is equal to the current object.
Returns <see langword="true" /> if the specified object is equal to the current object; otherwise, <see langword="false" /> .
obj
The object to compare with the current object.
protected
void
Finalize​()
Inherited from object
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
public
int
GetHashCode​()
Inherited from object
Serves as the default hash function.
Returns A hash code for the current object.
public
Type
GetType​()
Inherited from object
Gets the <see cref="T:System.Type" /> of the current instance.
Returns The exact runtime type of the current instance.
protected
object
MemberwiseClone​()
Inherited from object
Creates a shallow copy of the current <see cref="T:System.Object" /> .
Returns A shallow copy of the current <see cref="T:System.Object" /> .