PreserializedResourceWriter.AddActivatorResource 메서드

정의

리소스를 읽을 때 유형 생성자에 전달되는 Stream 값으로 표시되는 지정된 유형의 리소스를 추가합니다.

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)

매개 변수

name
String

리소스 이름입니다.

value
Stream

유형 생성자가 인식하는 Stream 형식의 리소스 값입니다.

typeName
String

리소스의 정규화된 어셈블리 유형 이름입니다.

closeAfterWrite
Boolean

리소스를 쓴 이후에 스트림을 닫을지(true) 열린 상태로 둘지(false, 기본값) 여부를 나타내는 선택적 값입니다.

예외

name, typeName 또는 valuenull입니다.

개체의 유형은 Stream이지만 검색할 수 없습니다.

적용 대상