Microsoft.Protocols.TestSuites.MS_OXCFXICS.FastTransferStream.VerifyErrorInfo C# (CSharp) Method

VerifyErrorInfo() public method

Indicate the MetaProperties at the position equals a specified PidTagFXErrorInfo
public VerifyErrorInfo ( int offset ) : bool
offset int An int value
return bool
        public bool VerifyErrorInfo(int offset)
        {
            return this.VerifyMarker(Markers.PidTagFXErrorInfo, offset);
        }

Usage Example

        /// <summary>
        /// Check errorInfos in a FastTransferStream.
        /// </summary>
        /// <param name="stream">A FastTransferStream</param>
        /// <param name="offset">An offset to the current position of the FastTransferStream</param>
        /// <returns>If the FastTransferStream contains errorInfos then read them and
        /// return true, else return false.
        /// </returns>
        protected bool CheckErrorInfo(FastTransferStream stream, int offset)
        {
            int count = 0;

            stream.Position += offset;
            while (stream.VerifyErrorInfo(0))
            {
                this.errorInfoList.Add(new ErrorInfo(stream));
                count++;
            }

            return(count > 0);
        }