EnumerableToDispatchMarshaler.GetInstance(String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳一個自訂指揮器的實例。
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
參數
- pstrCookie
- String
自訂 marshaler 可以使用的字串「cookie」參數。
傳回
一個自訂執法者的例子。
備註
所有自訂編組器都必須實作此方法,儘管它不包含在 ICustomMarshaler 介面定義中。