Show / Hide Table of Contents

Class NpgsqlTsVector

Represents a PostgreSQL tsvector.

Inheritance
System.Object
NpgsqlTsVector
Namespace: NpgsqlTypes
Assembly: Npgsql.dll
Syntax
public sealed class NpgsqlTsVector : IEnumerable<NpgsqlTsVector.Lexeme>

Constructors

NpgsqlTsVector(List<NpgsqlTsVector.Lexeme>)

Constructs an NpgsqlTsVector from a list of lexemes. This also sorts and remove duplicates.

Declaration
public NpgsqlTsVector(List<NpgsqlTsVector.Lexeme> lexemes)
Parameters
Type Name Description
List<NpgsqlTsVector.Lexeme> lexemes

Properties

Count

Gets the number of lexemes.

Declaration
public int Count { get; }
Property Value
Type Description
System.Int32

Item[Int32]

Returns the lexeme at a specific index

Declaration
public NpgsqlTsVector.Lexeme this[int index] { get; }
Parameters
Type Name Description
System.Int32 index
Property Value
Type Description
NpgsqlTsVector.Lexeme

Methods

GetEnumerator()

Returns an enumerator.

Declaration
public IEnumerator<NpgsqlTsVector.Lexeme> GetEnumerator()
Returns
Type Description
IEnumerator<NpgsqlTsVector.Lexeme>

Parse(String)

Parses a tsvector in PostgreSQL's text format.

Declaration
public static NpgsqlTsVector Parse(string value)
Parameters
Type Name Description
System.String value
Returns
Type Description
NpgsqlTsVector

ToString()

Gets a string representation in PostgreSQL's format.

Declaration
public override string ToString()
Returns
Type Description
System.String
Back to top Copyright © 2015-2017 Microsoft
Generated by DocFX