TypeManager

Overview

The static TypeManager is used internally to hold references to all known complex types (structs) known to the remoting framework.

When a complex type is received as part of a message, this registry will be used to obtain the appropriate Type reference based on the class name, using the FindType method.

Location


 

AddType (Type)

 

class method AddType(type: Type)

 

static void AddType(Type type)

 

Shared Sub AddType(type As Type)

Parameters:

  • type:

AddType (Type, ITypeActivator)

 

class method AddType(type: Type; activator: ITypeActivator)

 

static void AddType(Type type, ITypeActivator activator)

 

Shared Sub AddType(type As Type, activator As ITypeActivator)

Parameters:

  • type:
  • activator:

AddType (Type, Type)

 

class method AddType(type: Type; activator: Type)

 

static void AddType(Type type, Type activator)

 

Shared Sub AddType(type As Type, activator As Type)

Parameters:

  • type:
  • activator:

CreateInstance

 

class method CreateInstance(typeName: String): Object

 

static Object CreateInstance(String typeName)

 

Shared Function CreateInstance(typeName As String) As Object

Parameters:

  • typeName:

FindAliasedType<TAliasAttribute>

 

class method FindAliasedType<TAliasAttribute>(typeAlias: String; aliasResolver: TypeAliasResolver<TAliasAttribute>): Type

 

static Type FindAliasedType<TAliasAttribute>(String typeAlias, TypeAliasResolver<TAliasAttribute> aliasResolver)

 

Shared Function FindAliasedType<TAliasAttribute>(typeAlias As String, aliasResolver As TypeAliasResolver<TAliasAttribute>) As Type

Parameters:

  • typeAlias:
  • aliasResolver:

FindAnyType

 

class method FindAnyType(typeName: String): Type

 

static Type FindAnyType(String typeName)

 

Shared Function FindAnyType(typeName As String) As Type

Parameters:

  • typeName:

FindType

Locates a remotable complex type or exception by name, either from its internal list or - if this is the first request for a given service name - by scanning the AppDomain for the proper class. If no type with the given name can be found, null is returned.

 

class method FindType(typeName: String): Type

 

static Type FindType(String typeName)

 

Shared Function FindType(typeName As String) As Type

Parameters:

  • typeName:

FindTypeActivator

 

class method FindTypeActivator(type: Type): ITypeActivator

 

static ITypeActivator FindTypeActivator(Type type)

 

Shared Function FindTypeActivator(type As Type) As ITypeActivator

Parameters:

  • type:

GetType

Works in a similar way to FindType, but rather than returning null, it will raise an exception when the given type name can't be found.

 

class method GetType(typeName: String): Type

 

static Type GetType(String typeName)

 

Shared Function GetType(typeName As String) As Type

Parameters:

  • typeName:

OverrideAliasedType

 

class method OverrideAliasedType(typeAlias: String; type: Type)

 

static void OverrideAliasedType(String typeAlias, Type type)

 

Shared Sub OverrideAliasedType(typeAlias As String, type As Type)

Parameters:

  • typeAlias:
  • type:

OverrideType

Can be used to register a different type than the one registered by default to be used when streaming classes received from the remote side.

 

class method OverrideType(typeName: String; type: Type)

 

static void OverrideType(String typeName, Type type)

 

Shared Sub OverrideType(typeName As String, type As Type)

Parameters:

  • typeName:
  • type:

StandardNullableTypes

 

class var StandardNullableTypes: array of String;

 

static String[] StandardNullableTypes

 

Shared FIELD StandardNullableTypes() As String()

StandardTypes

 

class var StandardTypes: array of String;

 

static String[] StandardTypes

 

Shared FIELD StandardTypes() As String()

 

StandardNullableTypes

 

class var StandardNullableTypes: array of String;

 

static String[] StandardNullableTypes

 

Shared FIELD StandardNullableTypes() As String()

StandardTypes

 

class var StandardTypes: array of String;

 

static String[] StandardTypes

 

Shared FIELD StandardTypes() As String()

 

AddType (Type)

 

class method AddType(type: Type)

 

static void AddType(Type type)

 

Shared Sub AddType(type As Type)

Parameters:

  • type:

AddType (Type, ITypeActivator)

 

class method AddType(type: Type; activator: ITypeActivator)

 

static void AddType(Type type, ITypeActivator activator)

 

Shared Sub AddType(type As Type, activator As ITypeActivator)

Parameters:

  • type:
  • activator:

AddType (Type, Type)

 

class method AddType(type: Type; activator: Type)

 

static void AddType(Type type, Type activator)

 

Shared Sub AddType(type As Type, activator As Type)

Parameters:

  • type:
  • activator:

CreateInstance

 

class method CreateInstance(typeName: String): Object

 

static Object CreateInstance(String typeName)

 

Shared Function CreateInstance(typeName As String) As Object

Parameters:

  • typeName:

FindAliasedType<TAliasAttribute>

 

class method FindAliasedType<TAliasAttribute>(typeAlias: String; aliasResolver: TypeAliasResolver<TAliasAttribute>): Type

 

static Type FindAliasedType<TAliasAttribute>(String typeAlias, TypeAliasResolver<TAliasAttribute> aliasResolver)

 

Shared Function FindAliasedType<TAliasAttribute>(typeAlias As String, aliasResolver As TypeAliasResolver<TAliasAttribute>) As Type

Parameters:

  • typeAlias:
  • aliasResolver:

FindAnyType

 

class method FindAnyType(typeName: String): Type

 

static Type FindAnyType(String typeName)

 

Shared Function FindAnyType(typeName As String) As Type

Parameters:

  • typeName:

FindType

Locates a remotable complex type or exception by name, either from its internal list or - if this is the first request for a given service name - by scanning the AppDomain for the proper class. If no type with the given name can be found, null is returned.

 

class method FindType(typeName: String): Type

 

static Type FindType(String typeName)

 

Shared Function FindType(typeName As String) As Type

Parameters:

  • typeName:

FindTypeActivator

 

class method FindTypeActivator(type: Type): ITypeActivator

 

static ITypeActivator FindTypeActivator(Type type)

 

Shared Function FindTypeActivator(type As Type) As ITypeActivator

Parameters:

  • type:

GetType

Works in a similar way to FindType, but rather than returning null, it will raise an exception when the given type name can't be found.

 

class method GetType(typeName: String): Type

 

static Type GetType(String typeName)

 

Shared Function GetType(typeName As String) As Type

Parameters:

  • typeName:

OverrideAliasedType

 

class method OverrideAliasedType(typeAlias: String; type: Type)

 

static void OverrideAliasedType(String typeAlias, Type type)

 

Shared Sub OverrideAliasedType(typeAlias As String, type As Type)

Parameters:

  • typeAlias:
  • type:

OverrideType

Can be used to register a different type than the one registered by default to be used when streaming classes received from the remote side.

 

class method OverrideType(typeName: String; type: Type)

 

static void OverrideType(String typeName, Type type)

 

Shared Sub OverrideType(typeName As String, type As Type)

Parameters:

  • typeName:
  • type: