Microsoft.Protocols.TestSuites.MS_OXCMAPIHTTP.S02_RequestTypesForAddressBookServerEndpoint.BuildDNToMinIdRequestBody C# (CSharp) Method

BuildDNToMinIdRequestBody() private method

Build the DNToMinId request body.
private BuildDNToMinIdRequestBody ( bool hasNames, StringArray_r names ) : DNToMinIdRequestBody
hasNames bool A Boolean value that specifies whether the Names field is present.
names StringArray_r A StringsArray_r structure that contains the list of distinguished names (DNs) (1) to be mapped to Minimal Entry IDs.
return DNToMinIdRequestBody
        private DNToMinIdRequestBody BuildDNToMinIdRequestBody(bool hasNames, StringArray_r names)
        {
            DNToMinIdRequestBody requestBodyOfDNToMId = new DNToMinIdRequestBody();

            requestBodyOfDNToMId.Reserved = 0x0;
            requestBodyOfDNToMId.HasNames = hasNames;
            if (hasNames)
            {
                requestBodyOfDNToMId.Names = names;
            }

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

            return requestBodyOfDNToMId;
        }