/// <summary> /// Gets View based on <see cref="Query"/>, <see cref="Scope"/>, <see cref="RowLimit"/> and <see cref="ViewFields"/> properties. /// </summary> /// <returns>View.</returns> private SharePointView GetView() { SharePointView view = new SharePointView { QueryInnerXml = Query, Scope = Scope, RowLimit = RowLimit }; view.ViewFields = (ViewFields != null) ? ViewFields.Split(new [] { ';' }, StringSplitOptions.RemoveEmptyEntries).ToList() : null; return(view); }
/// <summary> /// Gets View based on <see cref="Query"/>, <see cref="Scope"/>, <see cref="RowLimit"/> and <see cref="ViewFields"/> properties. /// </summary> /// <returns>View.</returns> private SharePointView GetView() { SharePointView view = new SharePointView { QueryInnerXml = Query, Scope = Scope, RowLimit = RowLimit }; view.ViewFields = (ViewFields != null) ? ViewFields.Split(new []{';'}, StringSplitOptions.RemoveEmptyEntries).ToList() : null; return view; }