MethodBuilder.SetMarshal(UnmanagedMarshal) メソッド

定義

注意事項

An alternate API is available: Emit the MarshalAs custom attribute instead. http://go.microsoft.com/fwlink/?linkid=14202

このメソッドの戻り値の型のマーシャリング情報を設定します。

public:
 void SetMarshal(System::Reflection::Emit::UnmanagedMarshal ^ unmanagedMarshal);
public void SetMarshal(System.Reflection.Emit.UnmanagedMarshal unmanagedMarshal);
[System.Obsolete("An alternate API is available: Emit the MarshalAs custom attribute instead. http://go.microsoft.com/fwlink/?linkid=14202")]
public void SetMarshal(System.Reflection.Emit.UnmanagedMarshal unmanagedMarshal);
member this.SetMarshal : System.Reflection.Emit.UnmanagedMarshal -> unit
[<System.Obsolete("An alternate API is available: Emit the MarshalAs custom attribute instead. http://go.microsoft.com/fwlink/?linkid=14202")>]
member this.SetMarshal : System.Reflection.Emit.UnmanagedMarshal -> unit
Public Sub SetMarshal (unmanagedMarshal As UnmanagedMarshal)

パラメーター

unmanagedMarshal
UnmanagedMarshal

このメソッドの戻り値の型の情報をマーシャリングします。

属性

例外

包含型は、以前に CreateType() を使用して作成されました。

-または-

現在のメソッドの場合、 IsGenericMethod プロパティは trueされますが、 IsGenericMethodDefinition プロパティは false

適用対象