ISerializationSurrogateProvider.GetObjectToSerialize(Object, Type) Metodo

Definizione

Durante la serializzazione restituisce un oggetto che sostituisce l'oggetto specificato.

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

Parametri

obj
Object

Oggetto da sostituire.

targetType
Type

Type al quale deve essere assegnato l'oggetto sostituito.

Restituisce

Oggetto sostituito che verrà serializzato.

Si applica a