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

Size() public method

Return the size of RopSynchronizationImportMessageChange request buffer structure.
public Size ( ) : int
return int
        public int Size()
        {
            // 7 indicates sizeof (byte) * 5 + sizeof (UInt16) 
            int size = sizeof(byte) * 7;
            for (int i = 0; i < this.PropertyValueCount; i++)
            {
                if (this.PropertyValues[i].Value != null)
                {
                    size += this.PropertyValues[i].Size();
                }
            }
                                                                                                                                                                                                
            return size;
        }
    }
RopSynchronizationImportMessageChangeRequest