BuildEventArgsReader.ArchiveFileEncountered Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An event that allows the caller to be notified when an embedded file is encountered in the binary log. When subscriber is OK with greedy reading entire content of the file and is interested only in the individual strings (e.g. for sensitive data redaction purposes), it can simplify subscribing to this event, by using handler with same signature as handler for StringReadDone and wrapping it via ToArchiveFileHandler(Action<StringReadEventArgs>) extension.
public:
virtual event Action<Microsoft::Build::Logging::ArchiveFileEventArgs ^> ^ ArchiveFileEncountered;
public event Action<Microsoft.Build.Logging.ArchiveFileEventArgs>? ArchiveFileEncountered;
member this.ArchiveFileEncountered : Action<Microsoft.Build.Logging.ArchiveFileEventArgs>
Public Event ArchiveFileEncountered As Action(Of ArchiveFileEventArgs)