DataServiceConfiguration.RegisterKnownType(Type) Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Agrega un tipo a la lista de tipos reconocidos por el servicio de datos.
public:
virtual void RegisterKnownType(Type ^ type);
public void RegisterKnownType (Type type);
abstract member RegisterKnownType : Type -> unit
override this.RegisterKnownType : Type -> unit
Public Sub RegisterKnownType (type As Type)
Parámetros
- type
- Type
Tipo que se va a agregar a la colección de tipos conocidos.
Implementaciones
Comentarios
Un proveedor puede usar el método RegisterKnownType para registrar un tipo cuando el runtime no lo puede detectar usando el conjunto de reglas predeterminado.