ISerializationSurrogateProvider.GetObjectToSerialize(Object, Type) Méthode

Définition

Pendant la sérialisation, retourne un objet qui remplace l’objet spécifié.

public:
 System::Object ^ GetObjectToSerialize(System::Object ^ obj, Type ^ targetType);
public object GetObjectToSerialize(object obj, Type targetType);
abstract member GetObjectToSerialize : obj * Type -> obj
Public Function GetObjectToSerialize (obj As Object, targetType As Type) As Object

Paramètres

obj
Object

Objet à remplacer.

targetType
Type

Auquel Type l’objet substitué doit être affecté.

Retours

Objet substitué qui sera sérialisé.

S’applique à