PreserializedResourceWriter.AddActivatorResource 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.
Adds a resource of the specified type represented by a Stream value that is passed to the type's constructor when reading the resource.
public void AddActivatorResource (string name, System.IO.Stream value, string typeName, bool closeAfterWrite = false);
member this.AddActivatorResource : string * System.IO.Stream * string * bool -> unit
Public Sub AddActivatorResource (name As String, value As Stream, typeName As String, Optional closeAfterWrite As Boolean = false)
Parameters
- name
- String
The resource name.
- typeName
- String
The assembly qualified type name of the resource.
- closeAfterWrite
- Boolean
An optional value that indicates whether, after resources have been written, the stream should be closed (true
) or left open (false
, the default value).
Exceptions
name
, typeName
, or value
is null
.
The object's type is Stream, but it is unseekable.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應