Condividi tramite


AssemblyBuilder.CodeBase Proprietà

Definizione

Attenzione

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

Ottiene la posizione dell'assembly, come specificato originariamente, ad esempio in un AssemblyName oggetto .

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

Valore della proprietà

Posizione dell'assembly, come specificato in origine.

Attributi

Eccezioni

Questo metodo non è attualmente supportato.

Il chiamante non dispone dell'autorizzazione richiesta.

Commenti

Per ottenere il percorso assoluto del file manifesto contenente il caricamento, usare la Assembly.Location proprietà .

Si applica a