PersistedAssemblyBuilder 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
public ref class PersistedAssemblyBuilder sealed : System::Reflection::Emit::AssemblyBuilder
public sealed class PersistedAssemblyBuilder : System.Reflection.Emit.AssemblyBuilder
type PersistedAssemblyBuilder = class
inherit AssemblyBuilder
Public NotInheritable Class PersistedAssemblyBuilder
Inherits AssemblyBuilder
- 繼承
建構函式
PersistedAssemblyBuilder(AssemblyName, Assembly, IEnumerable<CustomAttributeBuilder>) |
屬性
CodeBase |
已淘汰.
取得原先指定的組件位置 (例如在 AssemblyName 物件中指定的位置)。 (繼承來源 AssemblyBuilder) |
CustomAttributes |
取得包含此組件之自訂屬性的集合。 (繼承來源 Assembly) |
DefinedTypes | (繼承來源 AssemblyBuilder) |
EntryPoint |
傳回這個組件的進入點。 (繼承來源 AssemblyBuilder) |
EscapedCodeBase |
已淘汰.
已淘汰.
取得代表基礎碼的 URI,包括逸出字元。 (繼承來源 Assembly) |
Evidence |
取得這個組件的辨識碼。 (繼承來源 AssemblyBuilder) |
ExportedTypes |
取得在這個組件中定義的公用類型集合,而這些類型在組件外部是可見的。 (繼承來源 Assembly) |
FullName | |
GlobalAssemblyCache |
已淘汰.
取得值,這個值表示組件是否從全域組件快取載入。 (繼承來源 AssemblyBuilder) |
HostContext |
取得建立動態組件所在的主機內容。 (繼承來源 AssemblyBuilder) |
ImageRuntimeVersion |
取得將要儲存在含有資訊清單之檔案中的 Common Language Runtime 版本。 (繼承來源 AssemblyBuilder) |
IsCollectible |
取得值,這個值表示這個動態元件是否保留在可 AssemblyLoadContext收集的 中。 (繼承來源 AssemblyBuilder) |
IsDynamic | |
IsFullyTrusted |
取得值,這個值表示目前組件是否以完全信任來載入。 (繼承來源 Assembly) |
Location |
如果不是陰影複製,則取得包含資訊清單之已載入檔案的位置 (程式碼基底格式)。 (繼承來源 AssemblyBuilder) |
ManifestModule | |
Modules | (繼承來源 AssemblyBuilder) |
PermissionSet |
取得目前動態組件的授權集。 (繼承來源 AssemblyBuilder) |
ReflectionOnly |
取得值,其會表示此動態組件是否位於僅限反射內容中。 (繼承來源 AssemblyBuilder) |
SecurityRuleSet |
取得值,這個值指出應針對此組件強制執行的 Common Language Runtime (CLR) 安全性規則組合。 (繼承來源 AssemblyBuilder) |
方法
事件
ModuleResolve |
發生於 Common Language Runtime 類別載入器無法經由一般方法解析對組件內部模組的參考時。 (繼承來源 Assembly) |
擴充方法
GetExportedTypes(Assembly) | |
GetModules(Assembly) | |
GetTypes(Assembly) | |
GetCustomAttribute(Assembly, Type) |
擷取指定型別的自訂屬性,此屬性套用至指定組件。 |
GetCustomAttribute<T>(Assembly) |
擷取指定型別的自訂屬性,此屬性套用至指定組件。 |
GetCustomAttributes(Assembly) |
擷取套用至指定組件的自訂屬性集合。 |
GetCustomAttributes(Assembly, Type) |
擷取指定型別的自訂屬性集合,此集合套用至指定組件。 |
GetCustomAttributes<T>(Assembly) |
擷取指定型別的自訂屬性集合,此集合套用至指定組件。 |
IsDefined(Assembly, Type) |
指出是否將所指定型別的自訂屬性套用至指定的組件。 |
TryGetRawMetadata(Assembly, Byte*, Int32) |
擷取元件的元數據區段,以搭配 使用 MetadataReader。 |
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應