AssemblyBuilder.CodeBase Vlastnost

Definice

Upozornění

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

Získá umístění sestavení, jak je uvedeno původně (například v objektu 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

Hodnota vlastnosti

String

Umístění sestavení, jak bylo uvedeno původně.

Atributy

Výjimky

Tato metoda se v současné době nepodporuje.

Volající nemá požadované oprávnění.

Poznámky

Pokud chcete získat absolutní cestu k načteného souboru obsahujícího manifest, použijte Assembly.Location vlastnost.

Platí pro