MongoUtility.Command.ElementHelper.CutValue C# (CSharp) Method

CutValue() public static method

Cut Array Value
public static CutValue ( string elementPath, int valueIndex, BsonValue val, BsonDocument currentDocument, MongoCollection currentCollection ) : void
elementPath string
valueIndex int
val BsonValue
currentDocument BsonDocument
currentCollection MongoCollection
return void
        public static void CutValue(string elementPath, int valueIndex, BsonValue val, BsonDocument currentDocument,
            MongoCollection currentCollection)
        {
            ClipElement = val;
            IsElementClip = false;
            DropArrayValue(elementPath, valueIndex, currentDocument, currentCollection);
        }