Microsoft.Protocols.TestSuites.MS_LISTSWS.S03_OperationOnListItem.CreateDefaultCamlQueryOptions C# (CSharp) Method

CreateDefaultCamlQueryOptions() private static method

This method is used to construct a CamlQueryOptions instance using the following specified value :RecurrenceOrderBy – True, ViewAttributes – Scope= RecursiveAll, DateInUtc –True, IncludePermissions – True, IncludeAttachmentUrls – True, IncludeAttachmentVersion – True, RecurrencePatternXMLVersion – v3, ExpandUserField – True, MeetingInstanceID – -1.
private static CreateDefaultCamlQueryOptions ( ) : CamlQueryOptions
return Microsoft.Protocols.TestSuites.Common.CamlQueryOptions
        private static CamlQueryOptions CreateDefaultCamlQueryOptions()
        {
            CamlQueryOptions options = new CamlQueryOptions();
            options.QueryOptions = new CamlQueryOptionsQueryOptions();
            options.QueryOptions.RecurrenceOrderBy = "True";
            options.QueryOptions.ViewAttributes = new CamlQueryOptionsQueryOptionsViewAttributes();
            options.QueryOptions.ViewAttributes.ScopeSpecified = true;
            options.QueryOptions.ViewAttributes.Scope = EnumViewAttributes.RecursiveAll;
            options.QueryOptions.DateInUtc = "True";
            options.QueryOptions.IncludePermissions = "True";
            options.QueryOptions.IncludeAttachmentUrls = "True";
            options.QueryOptions.IncludeAttachmentVersion = "True";
            options.QueryOptions.RecurrencePatternXMLVersionSpecified = true;
            options.QueryOptions.RecurrencePatternXMLVersion = EnumRecurrencePatternXMLVersion.v3;
            options.QueryOptions.ExpandUserField = "True";
            options.QueryOptions.MeetingInstanceID = "-1";
            return options;
        }
S03_OperationOnListItem