AssemblyBuilder.SetEntryPointとは? わかりやすく解説

AssemblyBuilder.SetEntryPoint メソッド (MethodInfo, PEFileKinds)

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

名前空間: System.Reflection.Emit
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

Public Sub SetEntryPoint ( _
    entryMethod As MethodInfo, _
    fileKind As PEFileKinds _
)
Dim instance As AssemblyBuilder
Dim entryMethod As MethodInfo
Dim fileKind As PEFileKinds

instance.SetEntryPoint(entryMethod, fileKind)
public void SetEntryPoint (
    MethodInfo entryMethod,
    PEFileKinds fileKind
)
public:
void SetEntryPoint (
    MethodInfo^ entryMethod, 
    PEFileKinds fileKind
)
public void SetEntryPoint (
    MethodInfo entryMethod, 
    PEFileKinds fileKind
)
public function SetEntryPoint (
    entryMethod : MethodInfo, 
    fileKind : PEFileKinds
)

パラメータ

entryMethod

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

fileKind

構築するアセンブリ実行可能ファイルの型。

例外例外
例外の種類条件

ArgumentNullException

entryMethod が null 参照 (Visual Basic では Nothing) です。

InvalidOperationException

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

SecurityException

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

.NET Framework のセキュリティ.NET Framework のセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
AssemblyBuilder クラス
AssemblyBuilder メンバ
System.Reflection.Emit 名前空間

AssemblyBuilder.SetEntryPoint メソッド

この動的アセンブリのエントリ ポイントを設定します。
オーバーロードの一覧オーバーロードの一覧

名前 説明
AssemblyBuilder.SetEntryPoint (MethodInfo) コンソール アプリケーションを構築するという前提で、この動的アセンブリのエントリ ポイントを設定します。
AssemblyBuilder.SetEntryPoint (MethodInfo, PEFileKinds) このアセンブリのエントリ ポイントを設定し、構築するポータブル実行可能 (PE) ファイルの型を定義します。
参照参照

関連項目

AssemblyBuilder クラス
AssemblyBuilder メンバ
System.Reflection.Emit 名前空間

AssemblyBuilder.SetEntryPoint メソッド (MethodInfo)

コンソール アプリケーションを構築するという前提で、この動的アセンブリのエントリ ポイントを設定します。

名前空間: System.Reflection.Emit
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

Public Sub SetEntryPoint ( _
    entryMethod As MethodInfo _
)
Dim instance As AssemblyBuilder
Dim entryMethod As MethodInfo

instance.SetEntryPoint(entryMethod)
public void SetEntryPoint (
    MethodInfo entryMethod
)
public:
void SetEntryPoint (
    MethodInfo^ entryMethod
)
public void SetEntryPoint (
    MethodInfo entryMethod
)
public function SetEntryPoint (
    entryMethod : MethodInfo
)

パラメータ

entryMethod

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

例外例外
例外の種類条件

ArgumentNullException

entryMethod が null 参照 (Visual Basic では Nothing) です。

InvalidOperationException

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

SecurityException

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

.NET Framework のセキュリティ.NET Framework のセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
AssemblyBuilder クラス
AssemblyBuilder メンバ
System.Reflection.Emit 名前空間



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

「AssemblyBuilder.SetEntryPoint」の関連用語

AssemblyBuilder.SetEntryPointのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



AssemblyBuilder.SetEntryPointのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS