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.Gets the location of the assembly, as specified originally (such as in an AssemblyName object).

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à

String

Posizione dell'assembly come specificata in origine.The location of the assembly, as specified originally.

Attributi

Eccezioni

Questo metodo non è attualmente supportato.This method is not currently supported.

Il chiamante non dispone dell'autorizzazione richiesta.The caller does not have the required permission.

Commenti

Per ottenere il percorso assoluto del file che contiene il manifesto caricato, utilizzare la Assembly.Location Proprietà.To get the absolute path to the loaded manifest-containing file, use the Assembly.Location property.

Si applica a