C# Class MongoDB.Driver.Builders.Fields

Show file Open project: CloudMetal/mongo-csharp-driver

Public Methods

Method Description
Exclude ( ) : FieldsBuilder

Adds one or more field names to be excluded from the results.

Include ( ) : FieldsBuilder

Adds one or more field names to be included in the results.

Slice ( string name, int size ) : FieldsBuilder

Adds a slice to be included in the results.

Slice ( string name, int skip, int limit ) : FieldsBuilder

Adds a slice to be included in the results.

Method Details

Exclude() public static method

Adds one or more field names to be excluded from the results.
public static Exclude ( ) : FieldsBuilder
return FieldsBuilder

Include() public static method

Adds one or more field names to be included in the results.
public static Include ( ) : FieldsBuilder
return FieldsBuilder

Slice() public static method

Adds a slice to be included in the results.
public static Slice ( string name, int size ) : FieldsBuilder
name string The name of the field to slice.
size int The size of the slice (negative sizes are taken from the end).
return FieldsBuilder

Slice() public static method

Adds a slice to be included in the results.
public static Slice ( string name, int skip, int limit ) : FieldsBuilder
name string The name of the field to slice.
skip int The number of values to skip.
limit int The number of values to extract.
return FieldsBuilder