WriteString Method WriteString(string, string?) Writes a String field. Declaration void WriteString(string name, string? value) Parameters string name The name of the field. string value The value of the field.