MongoDB.Bson.IO.BsonWriter.WriteString C# (CSharp) 메소드

WriteString() 공개 추상적인 메소드

Writes a BSON String to the writer.
public abstract WriteString ( string value ) : void
value string The String value.
리턴 void
        public abstract void WriteString(string value);

Same methods

BsonWriter::WriteString ( string name, string value ) : void

Usage Example

        public override void Serialize(BsonWriter bsonWriter, Type nominalType, object value, IBsonSerializationOptions options)
        {
            if (value == null)
                throw new PBException("serialize OXmlSimpleFieldElement value is null");
            if (_trace)
                pb.Trace.WriteLine("OXmlSimpleFieldElementSerializer.Serialize()");

            OXmlSimpleFieldElement element = (OXmlSimpleFieldElement)value;
            bsonWriter.WriteStartDocument();
            bsonWriter.WriteString("Type", "SimpleField");
            bsonWriter.WriteString("Instruction", element.Instruction);
            bsonWriter.WriteEndDocument();
        }
All Usage Examples Of MongoDB.Bson.IO.BsonWriter::WriteString