The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

RemotingServices.GetServerTypeForUri Method

Returns the Type of the object with the specified URI.

Namespace: System.Runtime.Remoting
Assembly: mscorlib (in mscorlib.dll)

public static Type GetServerTypeForUri (
	string URI
public static Type GetServerTypeForUri (
	String URI
public static function GetServerTypeForUri (
	URI : String
) : Type
Not applicable.



The URI of the object whose Type is requested.

Return Value

The Type of the object with the specified URI.

Exception typeCondition


Either the immediate caller does not have infrastructure permission, or at least one of the callers higher in the callstack does not have permission to retrieve the type information of non-public members.

Because remoting identifies endpoints using URIs, the GetServerTypeForUri method is very useful in the pluggable parts of the remoting infrastructure (for example, channel sinks, dynamic sinks, and context sinks) that use IMessage objects, because the current method will return the associated type object from the URI.

Console.WriteLine("Server type: {0}",

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft