Поділитися через


AsnWriter Constructors

Definition

Overloads

AsnWriter(AsnEncodingRules)

Create a new AsnWriter with a given set of encoding rules.

AsnWriter(AsnEncodingRules, Int32)

Initializes a new instance of AsnWriter with a given set of encoding rules and an initial capacity.

AsnWriter(AsnEncodingRules)

Source:
AsnWriter.cs
Source:
AsnWriter.cs
Source:
AsnWriter.cs

Create a new AsnWriter with a given set of encoding rules.

public:
 AsnWriter(System::Formats::Asn1::AsnEncodingRules ruleSet);
public AsnWriter (System.Formats.Asn1.AsnEncodingRules ruleSet);
new System.Formats.Asn1.AsnWriter : System.Formats.Asn1.AsnEncodingRules -> System.Formats.Asn1.AsnWriter
Public Sub New (ruleSet As AsnEncodingRules)

Parameters

ruleSet
AsnEncodingRules

The encoding constraints for the writer.

Exceptions

ruleSet is not defined.

Applies to

AsnWriter(AsnEncodingRules, Int32)

Source:
AsnWriter.cs
Source:
AsnWriter.cs
Source:
AsnWriter.cs

Initializes a new instance of AsnWriter with a given set of encoding rules and an initial capacity.

public:
 AsnWriter(System::Formats::Asn1::AsnEncodingRules ruleSet, int initialCapacity);
public AsnWriter (System.Formats.Asn1.AsnEncodingRules ruleSet, int initialCapacity);
new System.Formats.Asn1.AsnWriter : System.Formats.Asn1.AsnEncodingRules * int -> System.Formats.Asn1.AsnWriter
Public Sub New (ruleSet As AsnEncodingRules, initialCapacity As Integer)

Parameters

ruleSet
AsnEncodingRules

The encoding constraints for the writer.

initialCapacity
Int32

The minimum capacity with which to initialize the underlying buffer.

Exceptions

ruleSet is not defined.

-or-

initialCapacity is a negative number.

Remarks

Specifying initialCapacity with a value of zero behaves as if no initial capacity were specified.

Applies to