Microsoft.Protocols.TestSuites.Common.RopSetSearchCriteriaRequest.Size C# (CSharp) Method

Size() public method

Return the size of this structure.
public Size ( ) : int
return int
        public int Size()
        {
            // 11 indicates sizeof(byte) * 3 + sizeof(UInt16) * 2 + sizeof(UInt32)
            int size = sizeof(byte) * 11;
            size += this.RestrictionDataSize;
            for (int i = 0; i < this.FolderIdCount; i++)
            {
                size += sizeof(ulong);
            }

            return size;
        }
    }
RopSetSearchCriteriaRequest