Noemax FastInfoset.NET Report an issue | Discuss in forums
XmlFastInfosetWriter.MaxVocabularyStringLength Property
See Also 
Noemax.FastInfoset Assembly > Noemax.FastInfoset Namespace > XmlFastInfosetWriter Class : MaxVocabularyStringLength Property



Gets and sets the maximum length of the string for which the writer will try to find a match in its vocabulary.


Namespace: Noemax.FastInfoset
Assembly: Noemax.FastInfoset (in Noemax.FastInfoset.dll)

Syntax

Visual Basic (Declaration) 
Public Property MaxVocabularyStringLength As Integer
Visual Basic (Usage)Copy Code
Dim instance As XmlFastInfosetWriter
Dim value As Integer
 
instance.MaxVocabularyStringLength = value
 
value = instance.MaxVocabularyStringLength
C# 
public int MaxVocabularyStringLength {get; set;}
C++/CLI 
public:
property int MaxVocabularyStringLength {
   int get();
   void set (int value);
}

Remarks

If the length of the character string that is written into the writer is smaller than the specified length, the writer will try to find a match for this string within the strings that have been already placed in the vocabulary and replace it with the reference to the already written string. If no match is found, the writer adds this character string to the vocabulary and all future occuraces of the same string will be replaced by references to it.

The writer does not try to find a match for strings that are longer than the specified length and so does not add them to the vocabulary.Setting this property to a higher value might improve compactness, but at might decrease the writing speed.

Version Information

.NET Framework

Supported in: 3.5, 3.0, 2.0

.NET Compact Framework

Supported in: 3.5, 2.0

See Also