AssemblyBuilder.CodeBase Właściwość

Definicja

Przestroga

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

Pobiera lokalizację zestawu, jak określono pierwotnie (na przykład w AssemblyName obiekcie).

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

Wartość właściwości

Lokalizacja zestawu, jak określono pierwotnie.

Atrybuty

Wyjątki

Ta metoda nie jest obecnie obsługiwana.

Obiekt wywołujący nie posiada wymaganych uprawnień.

Uwagi

Aby uzyskać ścieżkę bezwzględną do załadowanego pliku zawierającego manifest, użyj Assembly.Location właściwości .

Dotyczy