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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기