This documentation is archived and is not being maintained.
IRemotingTypeInfo Interface
Visual Studio 2010
Provides type information for an object.
Assembly: mscorlib (in mscorlib.dll)
The IRemotingTypeInfo type exposes the following members.
Use this interface to provide custom type information that is carried along with the ObjRef objects.
ObjRef^ objRefSample = RemotingServices::GetObjRefForProxy( myRemoteObject ); Console::WriteLine( "***ObjRef Details***" ); Console::WriteLine( "URI:\t {0}", objRefSample->URI ); array<Object^>^channelData = objRefSample->ChannelInfo->ChannelData; Console::WriteLine( "Channel Info:" ); for each(Object^ o in channelData) Console::WriteLine("\t{0}", o->ToString()); IEnvoyInfo^ envoyInfo = objRefSample->EnvoyInfo; if ( envoyInfo == nullptr ) { Console::WriteLine( "This ObjRef does not have envoy information." ); } else { IMessageSink^ envoySinks = envoyInfo->EnvoySinks; Console::WriteLine( "Envoy Sink Class: {0}", envoySinks ); } IRemotingTypeInfo^ typeInfo = objRefSample->TypeInfo; Console::WriteLine( "Remote type name: {0}", typeInfo->TypeName ); Console::WriteLine( "Can my Object cast to a Bitmap? {0}", typeInfo->CanCastTo( System::Drawing::Bitmap::typeid, objRefSample ) ); Console::WriteLine( "Is this Object from this AppDomain? {0}", objRefSample->IsFromThisAppDomain() ); Console::WriteLine( "Is this Object from this process? {0}", objRefSample->IsFromThisProcess() );
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:
