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

BuildGetPropsRequestBody() private method

Build the GetProps request body.
private BuildGetPropsRequestBody ( uint flags, bool hasState, STAT stat, bool hasPropertyTags, LargePropertyTagArray propetyTags ) : GetPropsRequestBody
flags uint A set of bit flags that specify options to the server.
hasState bool A Boolean value that specifies whether the State field is present.
stat STAT A STAT structure that specifies the state of a specific address book container.
hasPropertyTags bool A Boolean value that specifies whether the PropertyTags field is present.
propetyTags LargePropertyTagArray A LargePropertyTagArray structure that contains the property tags of the properties that the client is requesting.
return GetPropsRequestBody
        private GetPropsRequestBody BuildGetPropsRequestBody(uint flags, bool hasState, STAT? stat, bool hasPropertyTags, LargePropertyTagArray propetyTags)
        {
            GetPropsRequestBody getPropertyRequestBody = new GetPropsRequestBody();
            getPropertyRequestBody.Flags = flags;
            byte[] auxIn = new byte[] { };
            getPropertyRequestBody.AuxiliaryBuffer = auxIn;
            getPropertyRequestBody.AuxiliaryBufferSize = (uint)auxIn.Length;

            getPropertyRequestBody.HasState = hasState;
            if (hasState)
            {
                getPropertyRequestBody.State = (STAT)stat;
            }

            getPropertyRequestBody.HasPropertyTags = hasPropertyTags;
            if (hasPropertyTags)
            {
                getPropertyRequestBody.PropertyTags = propetyTags;
            }

            return getPropertyRequestBody;
        }