void IPersistable.Deserialize(Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.Code:
                    m_code = (ProcessingErrorCode)reader.ReadEnum();
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.Severity:
                    m_severity = (Severity)reader.ReadEnum();
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.ObjectType:
                    m_objectType = (ObjectType)reader.ReadEnum();
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.ObjectName:
                    m_objectName = reader.ReadString();
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.PropertyName:
                    m_propertyName = reader.ReadString();
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.Message:
                    m_message = reader.ReadString();
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.ProcessingMessages:
                    m_processingMessages = reader.ReadListOfRIFObjects <ProcessingMessageList>();
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.CommonCode:
                    m_commonCode = (ErrorCode)reader.ReadEnum();
                    break;

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
Beispiel #2
0
        internal void Deserialize(Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.Name:
                    m_name = reader.ReadString();
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.DataType:
                    m_dataType = (DataType)reader.ReadEnum();
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.Nullable:
                    m_nullable = reader.ReadBoolean();
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.UsedInQuery:
                    m_usedInQuery = reader.ReadBoolean();
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.AllowBlank:
                    m_allowBlank = reader.ReadBoolean();
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.MultiValue:
                    m_multiValue = reader.ReadBoolean();
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.DefaultValue:
                    m_defaultValues = reader.ReadVariantArray();
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.PromptUser:
                    m_promptUser = reader.ReadBoolean();
                    break;

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }