AssemblyBuilder.CodeBase Eigenschap

Definitie

Let op

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

Hiermee wordt de locatie van de assembly opgehaald, zoals oorspronkelijk is opgegeven (zoals in een AssemblyName object).

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

Waarde van eigenschap

De locatie van de assembly, zoals oorspronkelijk is opgegeven.

Kenmerken

Uitzonderingen

Deze methode wordt momenteel niet ondersteund.

De beller heeft niet de vereiste machtiging.

Opmerkingen

Gebruik de Assembly.Location eigenschap om het absolute pad naar het geladen manifestbestand op te halen.

Van toepassing op