AssemblyBuilder.SetEntryPoint メソッド

定義

この動的アセンブリのエントリ ポイントを設定します。

オーバーロード

名前 説明
SetEntryPoint(MethodInfo)

コンソール アプリケーションがビルドされていると仮定して、この動的アセンブリのエントリ ポイントを設定します。

SetEntryPoint(MethodInfo, PEFileKinds)

このアセンブリのエントリ ポイントを設定し、ビルドするポータブル実行可能ファイル (PE ファイル) の種類を定義します。

SetEntryPoint(MethodInfo)

コンソール アプリケーションがビルドされていると仮定して、この動的アセンブリのエントリ ポイントを設定します。

public:
 void SetEntryPoint(System::Reflection::MethodInfo ^ entryMethod);
public void SetEntryPoint(System.Reflection.MethodInfo entryMethod);
member this.SetEntryPoint : System.Reflection.MethodInfo -> unit
Public Sub SetEntryPoint (entryMethod As MethodInfo)

パラメーター

entryMethod
MethodInfo

この動的アセンブリのエントリ ポイントを表すメソッドへの参照。

例外

entryMethodnullです。

entryMethod は、このアセンブリ内に含まれていません。

呼び出し元に必要なアクセス許可がありません。

適用対象

SetEntryPoint(MethodInfo, PEFileKinds)

このアセンブリのエントリ ポイントを設定し、ビルドするポータブル実行可能ファイル (PE ファイル) の種類を定義します。

public:
 void SetEntryPoint(System::Reflection::MethodInfo ^ entryMethod, System::Reflection::Emit::PEFileKinds fileKind);
public void SetEntryPoint(System.Reflection.MethodInfo entryMethod, System.Reflection.Emit.PEFileKinds fileKind);
member this.SetEntryPoint : System.Reflection.MethodInfo * System.Reflection.Emit.PEFileKinds -> unit
Public Sub SetEntryPoint (entryMethod As MethodInfo, fileKind As PEFileKinds)

パラメーター

entryMethod
MethodInfo

この動的アセンブリのエントリ ポイントを表すメソッドへの参照。

fileKind
PEFileKinds

ビルドされるアセンブリ実行可能ファイルの型。

例外

entryMethodnullです。

entryMethod は、このアセンブリ内に含まれていません。

呼び出し元に必要なアクセス許可がありません。

適用対象