AssemblyBuilder.CodeBase プロパティ

定義

注意事項

Assembly.CodeBase and Assembly.EscapedCodeBase are only included for .NET Framework compatibility. Use Assembly.Location instead.

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

public:
 virtual property System::String ^ CodeBase { System::String ^ get(); };
[System.Obsolete("Assembly.CodeBase and Assembly.EscapedCodeBase are only included for .NET Framework compatibility. Use Assembly.Location instead.", DiagnosticId="SYSLIB0012", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public override string? CodeBase { get; }
public override string? CodeBase { get; }
public override string CodeBase { get; }
[<System.Obsolete("Assembly.CodeBase and Assembly.EscapedCodeBase are only included for .NET Framework compatibility. Use Assembly.Location instead.", DiagnosticId="SYSLIB0012", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
member this.CodeBase : string
member this.CodeBase : string
Public Overrides ReadOnly Property CodeBase As String

プロパティ値

String

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

属性

例外

このメソッドは現在サポートされていません。

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

注釈

読み込まれたマニフェストを含むファイルへの絶対パスを取得するには、プロパティを Assembly.Location 使用します。

適用対象