Share via


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 specificata in origine, ad esempio in un oggetto 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

Valore della proprietà

Posizione dell'assembly come specificata in origine.

Attributi

Eccezioni

Questo metodo non è attualmente supportato.

Il chiamante non dispone dell'autorizzazione richiesta.

Commenti

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

Si applica a