17 private object __identity;
19 private object Identity
31 [SecuritySafeCritical]
32 internal IntPtr GetComIUnknown(
bool fIsBeingMarshalled)
45 internal bool IsInstanceOfType(
Type T)
47 return T.IsInstanceOfType(
this);
52 Type type = GetType();
57 return type.
InvokeMember(name, invokeAttr, binder,
this, args, modifiers, culture, namedParameters);
69 marshalByRefObject.Identity =
null;
71 return marshalByRefObject;
74 [SecuritySafeCritical]
78 Identity result =
null;
83 result = (Identity)obj.Identity;
94 internal static Identity GetIdentity(MarshalByRefObject obj)
97 return GetIdentity(obj, out fServer);
100 internal ServerIdentity __RaceSetServerIdentity(ServerIdentity
id)
102 if (__identity ==
null)
104 if (!
id.IsContextBound)
106 id.RaceSetTransparentProxy(
this);
110 return (ServerIdentity)__identity;
113 internal void __ResetServerIdentity()
144 if (__identity ==
null)
148 return new ObjRef(
this, requestedType);
151 [SecuritySafeCritical]
152 internal bool CanCastToXmlType(
string xmlTypeName,
string xmlTypeNamespace)
161 string name = (typeNamespace ==
null || typeNamespace.Length <= 0) ? xmlTypeName : (typeNamespace +
"." + xmlTypeName);
165 type = assembly.GetType(name, throwOnError:
false, ignoreCase:
false);
179 [SecuritySafeCritical]
180 internal static bool CanCastToXmlTypeHelper(RuntimeType castType, MarshalByRefObject o)
182 if (castType ==
null)
184 throw new ArgumentNullException(
"castType");
186 if (!castType.IsInterface && !castType.IsMarshalByRef)
190 string xmlType =
null;
191 string xmlTypeNamespace =
null;
194 xmlType = castType.Name;
197 return o.CanCastToXmlType(xmlType, xmlTypeNamespace);
Controls the.NET remoting lifetime services.
static Assembly Load(string assemblyString)
Loads an assembly given the long form of its name.
static string CodeXmlNamespaceForClrTypeNamespace(string typeNamespace, string assemblyName)
Returns the common language runtime type namespace name from the provided namespace and assembly name...
static bool DecodeXmlNamespaceForClrTypeNamespace(string inNamespace, out string typeNamespace, out string assemblyName)
Decodes the XML namespace and assembly names from the provided common language runtime namespace.
BindingFlags
Specifies flags that control binding and the way in which the search for members and types is conduct...
Provides several methods for using and publishing remoted objects in SOAP format.
Stores all relevant information required to generate a proxy in order to communicate with a remote ob...
Attaches a modifier to parameters so that binding can work with parameter signatures in which the typ...
virtual ObjRef CreateObjRef(Type requestedType)
Creates an object that contains all the relevant information required to generate a proxy used to com...
Provides information about, and means to manipulate, the current environment and platform....
virtual object InitializeLifetimeService()
Obtains a lifetime service object to control the lifetime policy for this instance.
static int CompareExchange(ref int location1, int value, int comparand)
Compares two 32-bit signed integers for equality and, if they are equal, replaces the first value.
Represents an assembly, which is a reusable, versionable, and self-describing building block of a com...
A platform-specific type that is used to represent a pointer or a handle.
Represents type declarations: class types, interface types, array types, value types,...
Provides a collection of methods for allocating unmanaged memory, copying unmanaged memory blocks,...
bool IsCOMObject
Gets a value indicating whether the T:System.Type is a COM object.
MethodImplOptions
Defines the details of how a method is implemented.
MarshalByRefObject MemberwiseClone(bool cloneIdentity)
Creates a shallow copy of the current T:System.MarshalByRefObject object.
Selects a member from a list of candidates, and performs type conversion from actual argument type to...
static bool GetXmlTypeForInteropType(Type type, out string xmlType, out string xmlTypeNamespace)
Returns XML type information that should be used when serializing the given T:System....
object GetLifetimeService()
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
static bool IsTransparentProxy(object proxy)
Returns a Boolean value that indicates whether the given object is a transparent proxy or a real obje...
static RealProxy GetRealProxy(object proxy)
Returns the real proxy backing the specified transparent proxy.
abstract object InvokeMember(string name, BindingFlags invokeAttr, Binder binder, object target, object[] args, ParameterModifier[] modifiers, CultureInfo culture, string[] namedParameters)
When overridden in a derived class, invokes the specified member, using the specified binding constra...
Specifies that the class can be serialized.
The exception that is thrown when a method call is invalid for the object's current state.
static IntPtr GetIUnknownForObject(object o)
Returns an IUnknown interface from a managed object.
static Type GetInteropTypeFromXmlType(string xmlType, string xmlTypeNamespace)
Retrieves the object T:System.Type that should be used during deserialization of an unrecognized obje...
Provides information about a specific culture (called a locale for unmanaged code development)....
Provides several methods for using and publishing remoted objects and proxies. This class cannot be i...
Provides atomic operations for variables that are shared by multiple threads.
The exception that is thrown when something has gone wrong during remoting.
virtual bool IsAssignableFrom(Type c)
Determines whether an instance of a specified type can be assigned to an instance of the current type...
Enables access to objects across application domain boundaries in applications that support remoting.