本文整理汇总了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();
}
}
示例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);
}
}
}
示例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);
}
}
}
示例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();
}
}
示例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);
}
}
}
示例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();
}
}