ExpandoToDispatchExMarshaler.GetInstance(String) Méthode

Définition

Retourne une instance du marshaleur personnalisé.

public:
 static System::Runtime::InteropServices::ICustomMarshaler ^ GetInstance(System::String ^ pstrCookie);
public static System.Runtime.InteropServices.ICustomMarshaler GetInstance (string pstrCookie);
static member GetInstance : string -> System.Runtime.InteropServices.ICustomMarshaler
Public Shared Function GetInstance (pstrCookie As String) As ICustomMarshaler

Paramètres

pstrCookie
String

Paramètre « cookie » de type chaîne qui peut être utilisé par le marshaleur personnalisé.

Retours

Instance du marshaleur personnalisé.

Exceptions

pstrCookie n'est pas valide.

Remarques

Tous les marshaleurs personnalisés doivent implémenter cette méthode, bien qu’elle ne fait pas partie de la définition de l’interface ICustomMarshaler .

S’applique à