当前位置: 首页>>代码示例>>C#>>正文


C# HelpMethod.FormatErrorCode方法代码示例

本文整理汇总了C#中MAPIInspector.Parsers.HelpMethod.FormatErrorCode方法的典型用法代码示例。如果您正苦于以下问题:C# HelpMethod.FormatErrorCode方法的具体用法?C# HelpMethod.FormatErrorCode怎么用?C# HelpMethod.FormatErrorCode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在MAPIInspector.Parsers.HelpMethod的用法示例。


在下文中一共展示了HelpMethod.FormatErrorCode方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Parse

 /// <summary>
 /// Parse the RopReloadCachedInformationResponse structure.
 /// </summary>
 /// <param name="s">An stream containing RopReloadCachedInformationResponse structure</param>
 public override void Parse(Stream s)
 {
     base.Parse(s);
     this.RopId = (RopIdType)ReadByte();
     this.InputHandleIndex = ReadByte();
     HelpMethod help = new HelpMethod();
     this.ReturnValue = help.FormatErrorCode(ReadUint());
     if ((ErrorCodes)ReturnValue == ErrorCodes.Success)
     {
         this.HasNamedProperties = ReadBoolean();
         this.SubjectPrefix = new TypedString();
         this.SubjectPrefix.Parse(s);
         this.NormalizedSubject = new TypedString();
         this.NormalizedSubject.Parse(s);
         this.RecipientCount = ReadUshort();
         this.ColumnCount = ReadUshort();
         List<PropertyTag> propertyTags = new List<PropertyTag>();
         for (int i = 0; i < this.ColumnCount; i++)
         {
             PropertyTag propertyTag = new PropertyTag();
             propertyTag.Parse(s);
             propertyTags.Add(propertyTag);
         }
         this.RecipientColumns = propertyTags.ToArray();
         this.RowCount = ReadByte();
         List<OpenRecipientRow> openRecipientRows = new List<OpenRecipientRow>();
         for (int i = 0; i < this.RowCount; i++)
         {
             OpenRecipientRow openRecipientRow = new OpenRecipientRow(this.RecipientColumns);
             openRecipientRow.Parse(s);
             openRecipientRows.Add(openRecipientRow);
         }
         this.RecipientRows = openRecipientRows.ToArray();
     }
 }
开发者ID:OfficeDev,项目名称:Office-Inspectors-for-Fiddler,代码行数:39,代码来源:MSOXCMSG.cs

示例2: Parse

        /// <summary>
        /// Parse the RopOptionsDataResponse structure.
        /// </summary>
        /// <param name="s">An stream containing RopOptionsDataResponse structure.</param>
        public override void Parse(Stream s)
        {
            base.Parse(s);

            this.RopId = (RopIdType)ReadByte();
            this.InputHandleIndex = ReadByte();
            HelpMethod help = new HelpMethod();
            this.ReturnValue = help.FormatErrorCode(ReadUint());

            if ((ErrorCodes)ReturnValue == ErrorCodes.Success)
            {
                this.Reserved = ReadByte();
                this.OptionalInfoSize = ReadUshort();
                this.OptionalInfo = ConvertArray(ReadBytes((int)this.OptionalInfoSize));
                this.HelpFileSize = ReadUshort();
                if (this.HelpFileSize != 0)
                {
                    this.HelpFile = ConvertArray(ReadBytes((int)this.HelpFileSize));
                    this.HelpFileName = new MAPIString(Encoding.ASCII);
                    this.HelpFileName.Parse(s);
                }
            }
        }
开发者ID:jiaxiaoyan23,项目名称:MAPI-Inspector-for-Fiddler,代码行数:27,代码来源:MSOXCROPS.cs

示例3: Parse

        /// <summary>
        /// Parse the RopFindRowResponse structure.
        /// </summary>
        /// <param name="s">An stream containing RopFindRowResponse structure.</param>
        public override void Parse(Stream s)
        {
            base.Parse(s);

            this.RopId = (RopIdType)ReadByte();
            this.InputHandleIndex = ReadByte();
            HelpMethod help = new HelpMethod();
            this.ReturnValue = help.FormatErrorCode(ReadUint());

            if ((ErrorCodes)ReturnValue == ErrorCodes.Success)
            {
                this.RowNoLongerVisible = ReadBoolean();
                this.HasRowData = ReadBoolean();
                if ((bool)HasRowData)
                {
                    PropertyRow tempPropertyRow = new PropertyRow(propertiesBySetColum);
                    this.RowData = tempPropertyRow;
                    this.RowData.Parse(s);
                }
            }
        }
开发者ID:jiaxiaoyan23,项目名称:MAPI-Inspector-for-Fiddler,代码行数:25,代码来源:MSOXCTABL.cs

示例4: Parse

        /// <summary>
        /// Parse the RopGetStoreStateResponse structure.
        /// </summary>
        /// <param name="s">An stream containing RopGetStoreStateResponse structure.</param>
        public override void Parse(Stream s)
        {
            base.Parse(s);

            this.RopId = (RopIdType)ReadByte();
            this.InputHandleIndex = ReadByte();
            List<PropertyRow> TmpRows = new List<PropertyRow>();
            HelpMethod help = new HelpMethod();
            this.ReturnValue = help.FormatErrorCode(ReadUint());
            if ((ErrorCodes)ReturnValue == ErrorCodes.Success)
            {
                this.StoreState = ReadUint();
            }
        }
开发者ID:OfficeDev,项目名称:Office-Inspectors-for-Fiddler,代码行数:18,代码来源:MSOXCSTOR.cs

示例5: Parse

        /// <summary>
        /// Parse the RopQueryNamedPropertiesResponse structure.
        /// </summary>
        /// <param name="s">An stream containing RopQueryNamedPropertiesResponse structure.</param>
        public override void Parse(Stream s)
        {
            base.Parse(s);

            this.RopId = (RopIdType)ReadByte();
            this.InputHandleIndex = ReadByte();
            HelpMethod help = new HelpMethod();
            this.ReturnValue = help.FormatErrorCode(ReadUint());
            if ((ErrorCodes)ReturnValue == ErrorCodes.Success)
            {
                this.IdCount = ReadUshort();
                this.PropertyIds = ConvertArray(new ushort[(int)this.IdCount]);
                this.PropertyNames = new PropertyName[(int)this.IdCount];
                for (int i = 0; i < this.IdCount; i++)
                {
                    PropertyIds[i] = ReadUshort();
                }
                for (int i = 0; i < this.IdCount; i++)
                {
                    PropertyNames[i] = new PropertyName();
                    PropertyNames[i].Parse(s);
                }
            }
        }
开发者ID:OfficeDev,项目名称:Office-Inspectors-for-Fiddler,代码行数:28,代码来源:MSOXCPRPT.cs

示例6: Parse

        /// <summary>
        /// Parse the RopFastTransferDestinationPutBufferResponse structure.
        /// </summary>
        /// <param name="s">An stream containing RopFastTransferDestinationPutBufferResponse structure.</param>
        public override void Parse(Stream s)
        {
            base.Parse(s);

            this.RopId = (RopIdType)ReadByte();
            this.InputHandleIndex = ReadByte();
            HelpMethod help = new HelpMethod();
            this.ReturnValue = help.FormatErrorCode(ReadUint());

            if ((ErrorCodes)ReturnValue == ErrorCodes.Success)
            {
                this.TransferStatus = ReadUshort();
                this.InProgressCount = ReadUshort();
                this.TotalStepCount = ReadUshort();
                this.Reserved = ReadByte();
                this.BufferUsedSize = ReadUshort();
            }
        }
开发者ID:jiaxiaoyan23,项目名称:MAPI-Inspector-for-Fiddler,代码行数:22,代码来源:MSOXCFXICS.cs


注:本文中的MAPIInspector.Parsers.HelpMethod.FormatErrorCode方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。