NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

IRemotingTypeInfo.CanCastTo

Checks whether the given type can be cast to the type.

[Visual Basic]
Function CanCastTo( _
   ByVal fromType As Type, _
   ByVal o As Object _
) As Boolean
[C#]
bool CanCastTo(
   Type fromType,
   object o
);
[C++]
bool CanCastTo(
   Type* fromType,
   Object* o
) = 0;
[JScript]
function CanCastTo(
   fromType : Type,
   o : Object
) : Boolean;

Parameters

fromType
Type to cast to.
o
[To be supplied.]

Return Value

True if cast will succeed, otherwise false.

See Also

IRemotingTypeInfo Interface | IRemotingTypeInfo Members | System.Runtime.Remoting Namespace