AssemblyBuilder.CodeBase Propiedad

Definición

Precaución

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

Obtiene la ubicación del ensamblado tal y como se especificó originalmente (como en un objeto 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

Valor de propiedad

Ubicación del ensamblado tal y como se especificó originalmente.

Atributos

Excepciones

Este método no se admite actualmente.

El llamador no dispone del permiso requerido.

Comentarios

Para obtener la ruta de acceso absoluta al archivo contenedor de manifiesto cargado, use la Assembly.Location propiedad .

Se aplica a