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
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour