SenseNet.ContentRepository.Storage.Search.ExpressionList.Add C# (CSharp) Method

Add() public method

public Add ( Expression expression ) : void
expression Expression
return void
		public void Add(Expression expression)
		{
			if (expression == null)
				throw new ArgumentNullException("expression");
			_expressions.Add(expression);
			expression.Parent = this;
		}

Usage Example

Example #1
0
 public static IEnumerable<Node> GetPortletsFromRepo()
 {
     var query = new NodeQuery();
     var expression = new ExpressionList(ChainOperator.And);
     expression.Add(new StringExpression(StringAttribute.Path, StringOperator.StartsWith, PortletsFolderPath));
     expression.Add(new TypeExpression(NodeType.GetByName("Portlet")));
     query.Add(expression);
     return query.Execute().Nodes;
 }
All Usage Examples Of SenseNet.ContentRepository.Storage.Search.ExpressionList::Add