다음을 통해 공유


CborWriter 생성자

정의

오버로드

CborWriter(CborConformanceMode, Boolean, Boolean)

지정한 구성을 사용하여 CborWriter 클래스의 새 인스턴스를 초기화합니다.

CborWriter(CborConformanceMode, Boolean, Boolean, Int32)

CborWriter(CborConformanceMode, Boolean, Boolean)

Source:
CborWriter.cs
Source:
CborWriter.cs
Source:
CborWriter.cs

지정한 구성을 사용하여 CborWriter 클래스의 새 인스턴스를 초기화합니다.

public:
 CborWriter(System::Formats::Cbor::CborConformanceMode conformanceMode, bool convertIndefiniteLengthEncodings, bool allowMultipleRootLevelValues);
public CborWriter (System.Formats.Cbor.CborConformanceMode conformanceMode = System.Formats.Cbor.CborConformanceMode.Strict, bool convertIndefiniteLengthEncodings = false, bool allowMultipleRootLevelValues = false);
public CborWriter (System.Formats.Cbor.CborConformanceMode conformanceMode, bool convertIndefiniteLengthEncodings, bool allowMultipleRootLevelValues);
new System.Formats.Cbor.CborWriter : System.Formats.Cbor.CborConformanceMode * bool * bool -> System.Formats.Cbor.CborWriter
Public Sub New (Optional conformanceMode As CborConformanceMode = System.Formats.Cbor.CborConformanceMode.Strict, Optional convertIndefiniteLengthEncodings As Boolean = false, Optional allowMultipleRootLevelValues As Boolean = false)
Public Sub New (conformanceMode As CborConformanceMode, convertIndefiniteLengthEncodings As Boolean, allowMultipleRootLevelValues As Boolean)

매개 변수

conformanceMode
CborConformanceMode

인코딩된 데이터에서 수행되는 규칙 검사에 대한 지침을 지정하는 열거형 값 중 하나입니다. 기본값은 Strict 규칙 모드입니다.

convertIndefiniteLengthEncodings
Boolean

true 무한 길이 인코딩을 명확한 길이로 자동 변환하고, 그렇지 않으면 허용하지 않는 규칙 모드에서 무한 길이 쓰기 API를 사용할 수 있도록 합니다. 그렇지 않으면 입니다 false.

allowMultipleRootLevelValues
Boolean

기록기에서 여러 루트 수준 값을 쓸 수 있도록 하려면 true이고, 그렇지 않으면 false입니다.

예외

conformanceMode가 정의된 CborConformanceMode가 아닙니다.

적용 대상

CborWriter(CborConformanceMode, Boolean, Boolean, Int32)

Source:
CborWriter.cs
public CborWriter (System.Formats.Cbor.CborConformanceMode conformanceMode = System.Formats.Cbor.CborConformanceMode.Strict, bool convertIndefiniteLengthEncodings = false, bool allowMultipleRootLevelValues = false, int initialCapacity = -1);
new System.Formats.Cbor.CborWriter : System.Formats.Cbor.CborConformanceMode * bool * bool * int -> System.Formats.Cbor.CborWriter
Public Sub New (Optional conformanceMode As CborConformanceMode = System.Formats.Cbor.CborConformanceMode.Strict, Optional convertIndefiniteLengthEncodings As Boolean = false, Optional allowMultipleRootLevelValues As Boolean = false, Optional initialCapacity As Integer = -1)

매개 변수

conformanceMode
CborConformanceMode
convertIndefiniteLengthEncodings
Boolean
allowMultipleRootLevelValues
Boolean
initialCapacity
Int32

적용 대상