Npgsql Api Docs |

# BitString.ToString Method (Encoding)

Interprets the bitstring as a series of bits in an encoded character string, encoded according to the Encoding passed, and returns that string. The bitstring must contain a whole number of octets(bytes) and also be valid according to the Encoding passed.

[Visual Basic]
Overloads Public Function ToString( _
ByVal encoding As Encoding _
) As String
[C#]
public string ToString(
Encoding encoding
);

#### Parameters

encoding
  The Encoding to use in producing the string.

#### Return Value

The string that was encoded in the BitString.

#### See Also

BitString Class | NpgsqlTypes Namespace | BitString.ToString Overload List