System.Runtime.Remoting.IRemotingTypeInfo Interface

Assembly: Mscorlib.dll
Namespace: System.Runtime.Remoting
Summary
Provides type information for an object.
C# Syntax:
public interface IRemotingTypeInfo
Remarks
Use this interface to provide custom type information that is carried along with the ObjRef objects.
See also:
System.Runtime.Remoting Namespace

System.Runtime.Remoting.IRemotingTypeInfo Member List:

Public Properties
TypeName Read-write

Gets or sets the fully-qualified type name of the server object in an ObjRef.
Public Methods
CanCastTo Checks whether the proxy representing the specified object type can be cast to the type represented by the IRemotingTypeInfo interface.

System.Runtime.Remoting.IRemotingTypeInfo Member Details

Property: TypeName (read-write)
Summary
Gets or sets the fully-qualified type name of the server object in an ObjRef.
C# Syntax:
string TypeName {get; set;}

Return to top


Method: CanCastTo(
   Type fromType,
   object o
)
Summary
Checks whether the proxy representing the specified object type can be cast to the type represented by the IRemotingTypeInfo interface.
C# Syntax:
bool CanCastTo(
   Type fromType,
   object o
);
Parameters:

fromType

The type to cast to.

o

The object for which to check casting.

Return Value:
true if cast will succeed; otherwise, false.
Remarks
The current method is called when an attempt is made to cast a proxy generated from an ObjRef. This method takes into account the type information carried in the ObjRef.

Return to top


Top of page

Copyright (c) 2002 Microsoft Corporation. All rights reserved.