次の方法で共有


AssemblyBuilder.CodeBase プロパティ

アセンブリの場所を初めに指定されたとおりに取得します (AssemblyName オブジェクトなど)。

Overrides Public ReadOnly Property CodeBase As String
[C#]
public override string CodeBase {get;}
[C++]
public: __property String* get_CodeBase();
[JScript]
public override function get CodeBase() : String;

プロパティ値

初めに指定されたとおりのアセンブリの場所。

例外

例外の種類 条件
NotSupportedException このメソッドは、現在サポートされていません。
SecurityException 呼び出し元に、必要なアクセス許可がありません。

解説

読み込み済みマニフェストを格納しているファイルの絶対パスを取得するには、 Assembly.Location プロパティを使用します。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

.NET Framework セキュリティ:

参照

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