Nyelv

AssemblyBuilder.CodeBase Tulajdonság

Definíció

Figyelemfelhívás

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

Lekéri a szerelvény eredetileg megadott helyét (például egy AssemblyName objektumban).

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

Tulajdonság értéke

A szerelvény eredetileg megadott helye.

Attribútumok

Kivételek

Ez a módszer jelenleg nem támogatott.

A hívó nem rendelkezik a szükséges engedéllyel.

Megjegyzések

A betöltött jegyzékfájl abszolút elérési útjának lekéréséhez használja a tulajdonságot Assembly.Location .

A következőre érvényes: