MarshalAsAttribute.MarshalType Champ

Définition

Spécifie le nom qualifié complet d'un marshaleur personnalisé.

public: System::String ^ MarshalType;
public string MarshalType;
public string? MarshalType;
[System.Runtime.InteropServices.ComVisible(true)]
public string MarshalType;
val mutable MarshalType : string
[<System.Runtime.InteropServices.ComVisible(true)>]
val mutable MarshalType : string
Public MarshalType As String 

Valeur de champ

Attributs

Remarques

Vous pouvez utiliser le MarshalType champ ou MarshalAsAttribute.MarshalTypeRef spécifier un type de marshaleur personnalisé pour le paramètre, le champ ou le type de retour avec attributs. Le MarshalType champ vous permet de spécifier une chaîne représentant le nom complet d’un marshaleur personnalisé. Il est utile pour les références à liaison tardive, mais il est moins recommandé que MarshalTypeRef pour spécifier un marshaleur personnalisé. Pour plus d’informations sur la création et l’utilisation de marshaleurs personnalisés, consultez Marshaling personnalisé.

S’applique à

Voir aussi