Поделиться через


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

Значение свойства

Расположение сборки, как указано первоначально.

Атрибуты

Исключения

Этот метод в настоящее время не поддерживается.

Вызывающий объект не имеет требуемого разрешения.

Комментарии

Чтобы получить абсолютный путь к загруженного файла, содержащего манифест, используйте Assembly.Location свойство.

Применяется к