Bagikan melalui


AssemblyBuilder.CodeBase Properti

Definisi

Perhatian

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

Mendapatkan lokasi assembly, seperti yang ditentukan awalnya (seperti dalam AssemblyName objek).

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

Nilai Properti

Lokasi perakitan, seperti yang ditentukan awalnya.

Atribut

Pengecualian

Metode ini saat ini tidak didukung.

Pemanggil tidak memiliki izin yang diperlukan.

Keterangan

Untuk mendapatkan jalur absolut ke file yang berisi manifes yang dimuat, gunakan Assembly.Location properti .

Berlaku untuk