Microsoft.Protocols.TestSuites.MS_OXCMAPIHTTP.S02_RequestTypesForAddressBookServerEndpoint.BuildQueryRowsRequestBody C# (CSharp) 메소드

BuildQueryRowsRequestBody() 개인적인 메소드

Build the QueryRows request body.
private BuildQueryRowsRequestBody ( bool hasState, STAT state, uint explicitTableCount, uint explicitTable, uint rowCount, bool hasColumns, LargePropertyTagArray columns ) : QueryRowsRequestBody
hasState bool A Boolean value that specifies whether the State field is present.
state STAT A STAT structure that specifies the state of a specific address book container.
explicitTableCount uint An unsigned integer that specifies the number of structures present in the ExplicitTable field.
explicitTable uint An array of MinimalEntryID structures that constitute the Explicit Table.
rowCount uint An unsigned integer that specifies the number of rows the client is requesting.
hasColumns bool A Boolean value that specifies whether the Columns field is present.
columns LargePropertyTagArray A LargePropTagArray structure that specifies the properties that the client requires for each row returned.
리턴 QueryRowsRequestBody
        private QueryRowsRequestBody BuildQueryRowsRequestBody(bool hasState, STAT state, uint explicitTableCount, uint[] explicitTable, uint rowCount, bool hasColumns, LargePropertyTagArray columns)
        {
            QueryRowsRequestBody queryRowsRequestBody = new QueryRowsRequestBody();

            queryRowsRequestBody.Flags = (uint)RetrievePropertyFlags.fSkipObjects;
            queryRowsRequestBody.HasState = hasState;
            if (hasState)
            {
                queryRowsRequestBody.State = state;
            }

            queryRowsRequestBody.ExplicitTableCount = explicitTableCount;
            queryRowsRequestBody.ExplicitTable = explicitTable;
            queryRowsRequestBody.RowCount = rowCount;

            queryRowsRequestBody.HasColumns = hasColumns;
            if (hasColumns)
            {
                queryRowsRequestBody.Columns = columns;
            }

            byte[] auxIn = new byte[] { };
            queryRowsRequestBody.AuxiliaryBuffer = auxIn;
            queryRowsRequestBody.AuxiliaryBufferSize = (uint)auxIn.Length;

            return queryRowsRequestBody;
        }