PreserializedResourceWriter.Generate Method
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.
Writes all resources to the output stream.
public:
virtual void Generate();
public void Generate ();
abstract member Generate : unit -> unit
override this.Generate : unit -> unit
Public Sub Generate ()
Implements
Exceptions
The resource list is null
.
Remarks
If the resources added to the writer can be represented in the system default format understood by the ResourceReader, they will be written as such. If the resources require runtime deserialization other than that supported by the system default format (BinaryFormatter) then we will write them using the format understood by DeserializingResourceReader.
If an exception occurs during object serialization or during IO, the .resources file is closed and deleted, since it is most likely invalid.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈