Udostępnij za pośrednictwem


AssemblyBuilder.CodeBase Właściwość

Definicja

Uwaga

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, zgodnie z pierwotnym opisem.

Atrybuty

Wyjątki

Ta metoda nie jest obecnie obsługiwana.

Obiekt wywołujący nie ma 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