AssemblyReference
Ecng.Compilation
The reference to the .NET assembly.
継承元: BaseCodeReference
コンストラクター
AssemblyReference
public AssemblyReference()
assemblyReference = AssemblyReference()
Initializes a new instance of the AssemblyReference.
AssemblyReference
public AssemblyReference(IFileSystem fileSystem)
assemblyReference = AssemblyReference(fileSystem)
Initializes a new instance of the AssemblyReference with a custom file system.
プロパティ
FileName
public string FileName { get; set; }
value = assemblyReference.FileName
assemblyReference.FileName = value
Gets or sets the file name of the assembly reference.
IsValid
public override bool IsValid { get; }
value = assemblyReference.IsValid
Determines whether the assembly reference is valid.
Name
public override string Name { get; }
value = assemblyReference.Name
Gets the display name of the assembly reference.
メソッド
GetImages
public override ValueTask<IEnumerable<ValueTuple<string, byte[]>>> GetImages(CancellationToken cancellationToken)
result = assemblyReference.GetImages(cancellationToken)
Asynchronously retrieves the images associated with the code reference.
- cancellationToken
- The token to monitor for cancellation requests.
戻り値: A task that represents the asynchronous operation. The task result contains an enumerable of tuples with image name and image body.
Load
public override void Load(SettingsStorage storage)
assemblyReference.Load(storage)
Loads the settings from the specified storage.
- storage
- The storage containing the settings.
Save
public override void Save(SettingsStorage storage)
assemblyReference.Save(storage)
Saves the settings to the specified storage.
- storage
- The storage where the settings will be saved.