Npgsql Api Docs

BitString.Parse Method 

Parses a string to produce a BitString. Most formats that can be produced by ToString can be accepted, but hexadecimal can be interpreted with the preceding X' to mark the following characters as being hexadecimal rather than binary.

[Visual Basic]
Public Shared Function Parse( _
   ByVal text As String _
) As BitString
[C#]
public static BitString Parse(
   string text
);

See Also

BitString Class | NpgsqlTypes Namespace