Esempio n. 1
0
 internal override void Deserialize(PSObject so, FormatObjectDeserializer deserializer)
 {
     base.Deserialize(so, deserializer);
     this.leftIndentation = deserializer.DeserializeIntMemberVariable(so, "leftIndentation");
     this.rightIndentation = deserializer.DeserializeIntMemberVariable(so, "rightIndentation");
     this.firstLine = deserializer.DeserializeIntMemberVariable(so, "firstLine");
 }
 internal override void Deserialize(PSObject so, FormatObjectDeserializer deserializer)
 {
     base.Deserialize(so, deserializer);
     this.label               = deserializer.DeserializeStringMemberVariable(so, "label");
     this.propertyName        = deserializer.DeserializeStringMemberVariable(so, "propertyName");
     this.formatPropertyField = (FormatPropertyField)deserializer.DeserializeMandatoryMemberObject(so, "formatPropertyField");
 }
        internal override void Deserialize(PSObject so, FormatObjectDeserializer deserializer)
        {
            base.Deserialize(so, deserializer);
            FormatInfoDataListDeserializer <FormatValue> .ReadList(so, "formatValueList", this.formatValueList, deserializer);

            this.frameInfo = (FrameInfo)deserializer.DeserializeMemberObject(so, "frameInfo");
        }
        internal override void Deserialize(PSObject so, FormatObjectDeserializer deserializer)
        {
            base.Deserialize(so, deserializer);
            FormatInfoDataListDeserializer <FormatPropertyField> .ReadList(so, "formatPropertyFieldList", this.formatPropertyFieldList, deserializer);

            this.multiLine = deserializer.DeserializeBoolMemberVariable(so, "multiLine");
        }
Esempio n. 5
0
 internal override void Deserialize(PSObject so, FormatObjectDeserializer deserializer)
 {
     base.Deserialize(so, deserializer);
     this.label = deserializer.DeserializeStringMemberVariable(so, "label");
     this.propertyName = deserializer.DeserializeStringMemberVariable(so, "propertyName");
     this.formatPropertyField = (FormatPropertyField) deserializer.DeserializeMandatoryMemberObject(so, "formatPropertyField");
 }
 internal override void Deserialize(PSObject so, FormatObjectDeserializer deserializer)
 {
     base.Deserialize(so, deserializer);
     this.leftIndentation  = deserializer.DeserializeIntMemberVariable(so, "leftIndentation");
     this.rightIndentation = deserializer.DeserializeIntMemberVariable(so, "rightIndentation");
     this.firstLine        = deserializer.DeserializeIntMemberVariable(so, "firstLine");
 }
 internal override void Deserialize(PSObject so, FormatObjectDeserializer deserializer)
 {
     base.Deserialize(so, deserializer);
     this.hideHeader   = deserializer.DeserializeBoolMemberVariable(so, "hideHeader");
     this.repeatHeader = deserializer.DeserializeBoolMemberVariable(so, "repeatHeader");
     FormatInfoDataListDeserializer <TableColumnInfo> .ReadList(so, "tableColumnInfoList", this.tableColumnInfoList, deserializer);
 }
Esempio n. 8
0
 internal override void BeginProcessing()
 {
     base.BeginProcessing();
     this.enumerationLimit = FormatEnumerationLimit();
     this.expressionFactory = new MshExpressionFactory();
     this.formatObjectDeserializer = new FormatObjectDeserializer(base.TerminatingErrorContext);
 }
        // returns null on error
        internal static FormatInfoData CreateInstance(PSObject so, FormatObjectDeserializer deserializer)
        {
            if (so == null)
            {
                throw PSTraceSource.NewArgumentNullException("so");
            }

            // look for the property that defines the type of object
            string classId = FormatObjectDeserializer.GetProperty(so, FormatInfoData.classidProperty) as string;

            if (classId == null)
            {
                string msg = StringUtil.Format(FormatAndOut_format_xxx.FOD_InvalidClassidProperty);

                ErrorRecord errorRecord = new ErrorRecord(
                    PSTraceSource.NewArgumentException("classid"),
                    "FormatObjectDeserializerInvalidClassidProperty",
                    ErrorCategory.InvalidData,
                    so);

                errorRecord.ErrorDetails = new ErrorDetails(msg);
                deserializer.TerminatingErrorContext.ThrowTerminatingError(errorRecord);
            }

            FormatInfoData fid = CreateInstance(classId, deserializer);

            return(fid);
        }
Esempio n. 10
0
 internal override void Deserialize(PSObject so, FormatObjectDeserializer deserializer)
 {
     base.Deserialize(so, deserializer);
     this.formatEntryInfo = (FormatEntryInfo)deserializer.DeserializeMandatoryMemberObject(so, "formatEntryInfo");
     this.outOfBand       = deserializer.DeserializeBoolMemberVariable(so, "outOfBand");
     this.writeStream     = deserializer.DeserializeWriteStreamTypeMemberVariable(so);
     this.isHelpObject    = so.IsHelpObject;
 }
Esempio n. 11
0
 internal static void ReadList(PSObject so, string property, List <T> lst, FormatObjectDeserializer deserializer)
 {
     if (lst == null)
     {
         throw PSTraceSource.NewArgumentNullException("lst");
     }
     FormatInfoDataListDeserializer <T> .ReadListHelper(PSObjectHelper.GetEnumerable(FormatObjectDeserializer.GetProperty(so, property)), lst, deserializer);
 }
Esempio n. 12
0
 internal override void Deserialize(PSObject so, FormatObjectDeserializer deserializer)
 {
     base.Deserialize(so, deserializer);
     this.width        = deserializer.DeserializeIntMemberVariable(so, "width");
     this.alignment    = deserializer.DeserializeIntMemberVariable(so, "alignment");
     this.label        = deserializer.DeserializeStringMemberVariable(so, "label");
     this.propertyName = deserializer.DeserializeStringMemberVariable(so, "propertyName");
 }
Esempio n. 13
0
 internal override void Deserialize(PSObject so, FormatObjectDeserializer deserializer)
 {
     base.Deserialize(so, deserializer);
     deserializer.VerifyDataNotNull(base.shapeInfo, "shapeInfo");
     this.pageHeaderEntry = (PageHeaderEntry)deserializer.DeserializeMemberObject(so, "pageHeaderEntry");
     this.pageFooterEntry = (PageFooterEntry)deserializer.DeserializeMemberObject(so, "pageFooterEntry");
     this.autosizeInfo    = (AutosizeInfo)deserializer.DeserializeMemberObject(so, "autosizeInfo");
 }
Esempio n. 14
0
 internal override void Deserialize(PSObject so, FormatObjectDeserializer deserializer)
 {
     base.Deserialize(so, deserializer);
     deserializer.VerifyDataNotNull(base.shapeInfo, "shapeInfo");
     this.pageHeaderEntry = (PageHeaderEntry) deserializer.DeserializeMemberObject(so, "pageHeaderEntry");
     this.pageFooterEntry = (PageFooterEntry) deserializer.DeserializeMemberObject(so, "pageFooterEntry");
     this.autosizeInfo = (AutosizeInfo) deserializer.DeserializeMemberObject(so, "autosizeInfo");
 }
Esempio n. 15
0
 internal override void Deserialize(PSObject so, FormatObjectDeserializer deserializer)
 {
     base.Deserialize(so, deserializer);
     this.formatEntryInfo = (FormatEntryInfo) deserializer.DeserializeMandatoryMemberObject(so, "formatEntryInfo");
     this.outOfBand = deserializer.DeserializeBoolMemberVariable(so, "outOfBand");
     this.writeStream = deserializer.DeserializeWriteStreamTypeMemberVariable(so);
     this.isHelpObject = so.IsHelpObject;
 }
Esempio n. 16
0
 internal override void Deserialize(PSObject so, FormatObjectDeserializer deserializer)
 {
     base.Deserialize(so, deserializer);
     this.width = deserializer.DeserializeIntMemberVariable(so, "width");
     this.alignment = deserializer.DeserializeIntMemberVariable(so, "alignment");
     this.label = deserializer.DeserializeStringMemberVariable(so, "label");
     this.propertyName = deserializer.DeserializeStringMemberVariable(so, "propertyName");
 }
Esempio n. 17
0
 internal override void Deserialize(PSObject so, FormatObjectDeserializer deserializer)
 {
     base.Deserialize(so, deserializer);
     // for the base class the shapeInfo is optional, but it's mandatory for this class
     deserializer.VerifyDataNotNull(this.shapeInfo, "shapeInfo");
     this.pageHeaderEntry = (PageHeaderEntry)deserializer.DeserializeMemberObject(so, "pageHeaderEntry");
     this.pageFooterEntry = (PageFooterEntry)deserializer.DeserializeMemberObject(so, "pageFooterEntry");
     this.autosizeInfo    = (AutosizeInfo)deserializer.DeserializeMemberObject(so, "autosizeInfo");
 }
Esempio n. 18
0
 private static void ReadListHelper(IEnumerable en, List <T> lst, FormatObjectDeserializer deserializer)
 {
     deserializer.VerifyDataNotNull(en, "enumerable");
     foreach (object obj2 in en)
     {
         T local = deserializer.DeserializeObject(PSObjectHelper.AsPSObject(obj2)) as T;
         deserializer.VerifyDataNotNull(local, "entry");
         lst.Add(local);
     }
 }
        private static void CreateInstanceError(Exception e, string clsid, FormatObjectDeserializer deserializer)
        {
            string      message     = StringUtil.Format(FormatAndOut_format_xxx.FOD_InvalidClassid, clsid);
            ErrorRecord errorRecord = new ErrorRecord(e, "FormatObjectDeserializerInvalidClassid", ErrorCategory.InvalidData, null)
            {
                ErrorDetails = new ErrorDetails(message)
            };

            deserializer.TerminatingErrorContext.ThrowTerminatingError(errorRecord);
        }
Esempio n. 20
0
        internal override void Deserialize(PSObject so, FormatObjectDeserializer deserializer)
        {
            base.Deserialize(so, deserializer);

            // The "repeatHeader" property was added later (V5, V6) and presents an incompatibility when remoting to older version PowerShell sessions.
            // When the property is missing from the serialized object, let the deserialized property be false.
            this.repeatHeader = deserializer.DeserializeBoolMemberVariable(so, "repeatHeader", cannotBeNull: false);
            this.hideHeader   = deserializer.DeserializeBoolMemberVariable(so, "hideHeader");
            FormatInfoDataListDeserializer <TableColumnInfo> .ReadList(so, "tableColumnInfoList", this.tableColumnInfoList, deserializer);
        }
Esempio n. 21
0
 internal override void BeginProcessing()
 {
     base.BeginProcessing();
     this.formatObjectDeserializer = new FormatObjectDeserializer(base.TerminatingErrorContext);
     this.ctxManager.contextCreation = new FormatMessagesContextManager.FormatContextCreationCallback(this.CreateOutputContext);
     this.ctxManager.fs = new FormatMessagesContextManager.FormatStartCallback(this.ProcessFormatStart);
     this.ctxManager.fe = new FormatMessagesContextManager.FormatEndCallback(this.ProcessFormatEnd);
     this.ctxManager.gs = new FormatMessagesContextManager.GroupStartCallback(this.ProcessGroupStart);
     this.ctxManager.ge = new FormatMessagesContextManager.GroupEndCallback(this.ProcessGroupEnd);
     this.ctxManager.payload = new FormatMessagesContextManager.PayloadCallback(this.ProcessPayload);
 }
Esempio n. 22
0
 internal override void BeginProcessing()
 {
     base.BeginProcessing();
     this.formatObjectDeserializer   = new FormatObjectDeserializer(base.TerminatingErrorContext);
     this.ctxManager.contextCreation = new FormatMessagesContextManager.FormatContextCreationCallback(this.CreateOutputContext);
     this.ctxManager.fs      = new FormatMessagesContextManager.FormatStartCallback(this.ProcessFormatStart);
     this.ctxManager.fe      = new FormatMessagesContextManager.FormatEndCallback(this.ProcessFormatEnd);
     this.ctxManager.gs      = new FormatMessagesContextManager.GroupStartCallback(this.ProcessGroupStart);
     this.ctxManager.ge      = new FormatMessagesContextManager.GroupEndCallback(this.ProcessGroupEnd);
     this.ctxManager.payload = new FormatMessagesContextManager.PayloadCallback(this.ProcessPayload);
 }
Esempio n. 23
0
 private static void ReadListHelper(IEnumerable en, List <T> lst, FormatObjectDeserializer deserializer)
 {
     deserializer.VerifyDataNotNull(en, "enumerable");
     foreach (object obj in en)
     {
         FormatInfoData fid = deserializer.DeserializeObject(PSObjectHelper.AsPSObject(obj));
         T entry            = fid as T;
         deserializer.VerifyDataNotNull(entry, "entry");
         lst.Add(entry);
     }
 }
        internal override void BeginProcessing()
        {
            base.BeginProcessing();

            // Get the Format Enumeration Limit.
            _enumerationLimit = InnerFormatShapeCommand.FormatEnumerationLimit();

            _expressionFactory = new MshExpressionFactory();

            _formatObjectDeserializer = new FormatObjectDeserializer(this.TerminatingErrorContext);
        }
Esempio n. 25
0
        internal static void ReadList(PSObject so, string property, List <T> lst, FormatObjectDeserializer deserializer)
        {
            if (lst == null)
            {
                throw PSTraceSource.NewArgumentNullException(nameof(lst));
            }

            object memberRaw = FormatObjectDeserializer.GetProperty(so, property);

            ReadListHelper(PSObjectHelper.GetEnumerable(memberRaw), lst, deserializer);
        }
Esempio n. 26
0
        // returns null on failure
        private static FormatInfoData CreateInstance(string clsid, FormatObjectDeserializer deserializer)
        {
            Func <FormatInfoData> ctor;

            if (!s_constructors.TryGetValue(clsid, out ctor))
            {
                CreateInstanceError(PSTraceSource.NewArgumentException(nameof(clsid)), clsid, deserializer);
                return(null);
            }

            try
            {
                FormatInfoData fid = ctor();
                return(fid);
            }
            catch (ArgumentException e)
            {
                CreateInstanceError(e, clsid, deserializer);
            }
            catch (NotSupportedException e)
            {
                CreateInstanceError(e, clsid, deserializer);
            }
            catch (TargetInvocationException e)
            {
                CreateInstanceError(e, clsid, deserializer);
            }
            catch (MemberAccessException e) // also MethodAccessException and MissingMethodException
            {
                CreateInstanceError(e, clsid, deserializer);
            }
            catch (System.Runtime.InteropServices.InvalidComObjectException e)
            {
                CreateInstanceError(e, clsid, deserializer);
            }
            catch (System.Runtime.InteropServices.COMException e)
            {
                CreateInstanceError(e, clsid, deserializer);
            }
            catch (TypeLoadException e)
            {
                CreateInstanceError(e, clsid, deserializer);
            }
            catch (Exception e) // will rethrow
            {
                Diagnostics.Assert(false,
                                   "Unexpected Activator.CreateInstance error in FormatInfoDataClassFactory.CreateInstance: "
                                   + e.GetType().FullName);
                throw;
            }

            return(null);
        }
Esempio n. 27
0
        internal override void BeginProcessing()
        {
            base.BeginProcessing();

            _formatObjectDeserializer = new FormatObjectDeserializer(this.TerminatingErrorContext);

            // hook up the event handlers for the context manager object
            _ctxManager.contextCreation = new FormatMessagesContextManager.FormatContextCreationCallback(this.CreateOutputContext);
            _ctxManager.fs = new FormatMessagesContextManager.FormatStartCallback(this.ProcessFormatStart);
            _ctxManager.fe = new FormatMessagesContextManager.FormatEndCallback(this.ProcessFormatEnd);
            _ctxManager.gs = new FormatMessagesContextManager.GroupStartCallback(this.ProcessGroupStart);
            _ctxManager.ge = new FormatMessagesContextManager.GroupEndCallback(this.ProcessGroupEnd);
            _ctxManager.payload = new FormatMessagesContextManager.PayloadCallback(this.ProcessPayload);
        }
Esempio n. 28
0
        internal override void BeginProcessing()
        {
            base.BeginProcessing();

            _formatObjectDeserializer = new FormatObjectDeserializer(this.TerminatingErrorContext);

            // hook up the event handlers for the context manager object
            _ctxManager.contextCreation = new FormatMessagesContextManager.FormatContextCreationCallback(this.CreateOutputContext);
            _ctxManager.fs      = new FormatMessagesContextManager.FormatStartCallback(this.ProcessFormatStart);
            _ctxManager.fe      = new FormatMessagesContextManager.FormatEndCallback(this.ProcessFormatEnd);
            _ctxManager.gs      = new FormatMessagesContextManager.GroupStartCallback(this.ProcessGroupStart);
            _ctxManager.ge      = new FormatMessagesContextManager.GroupEndCallback(this.ProcessGroupEnd);
            _ctxManager.payload = new FormatMessagesContextManager.PayloadCallback(this.ProcessPayload);
        }
        private static FormatInfoData CreateInstance(string clsid, FormatObjectDeserializer deserializer)
        {
            Type type = GetType(clsid);

            if (null == type)
            {
                CreateInstanceError(PSTraceSource.NewArgumentException("clsid"), clsid, deserializer);
                return(null);
            }
            try
            {
                return((FormatInfoData)Activator.CreateInstance(type));
            }
            catch (ArgumentException exception)
            {
                CreateInstanceError(exception, clsid, deserializer);
            }
            catch (NotSupportedException exception2)
            {
                CreateInstanceError(exception2, clsid, deserializer);
            }
            catch (TargetInvocationException exception3)
            {
                CreateInstanceError(exception3, clsid, deserializer);
            }
            catch (MemberAccessException exception4)
            {
                CreateInstanceError(exception4, clsid, deserializer);
            }
            catch (InvalidComObjectException exception5)
            {
                CreateInstanceError(exception5, clsid, deserializer);
            }
            catch (COMException exception6)
            {
                CreateInstanceError(exception6, clsid, deserializer);
            }
            catch (TypeLoadException exception7)
            {
                CreateInstanceError(exception7, clsid, deserializer);
            }
            catch (Exception)
            {
                throw;
            }
            return(null);
        }
Esempio n. 30
0
 internal static FormatInfoData CreateInstance(PSObject so, FormatObjectDeserializer deserializer)
 {
     if (so == null)
     {
         throw PSTraceSource.NewArgumentNullException("so");
     }
     string property = FormatObjectDeserializer.GetProperty(so, "ClassId2e4f51ef21dd47e99d3c952918aff9cd") as string;
     if (property == null)
     {
         string message = StringUtil.Format(FormatAndOut_format_xxx.FOD_InvalidClassidProperty, new object[0]);
         ErrorRecord errorRecord = new ErrorRecord(PSTraceSource.NewArgumentException("classid"), "FormatObjectDeserializerInvalidClassidProperty", ErrorCategory.InvalidData, so) {
             ErrorDetails = new ErrorDetails(message)
         };
         deserializer.TerminatingErrorContext.ThrowTerminatingError(errorRecord);
     }
     return CreateInstance(property, deserializer);
 }
Esempio n. 31
0
 private static FormatInfoData CreateInstance(string clsid, FormatObjectDeserializer deserializer)
 {
     Type type = GetType(clsid);
     if (null == type)
     {
         CreateInstanceError(PSTraceSource.NewArgumentException("clsid"), clsid, deserializer);
         return null;
     }
     try
     {
         return (FormatInfoData) Activator.CreateInstance(type);
     }
     catch (ArgumentException exception)
     {
         CreateInstanceError(exception, clsid, deserializer);
     }
     catch (NotSupportedException exception2)
     {
         CreateInstanceError(exception2, clsid, deserializer);
     }
     catch (TargetInvocationException exception3)
     {
         CreateInstanceError(exception3, clsid, deserializer);
     }
     catch (MemberAccessException exception4)
     {
         CreateInstanceError(exception4, clsid, deserializer);
     }
     catch (InvalidComObjectException exception5)
     {
         CreateInstanceError(exception5, clsid, deserializer);
     }
     catch (COMException exception6)
     {
         CreateInstanceError(exception6, clsid, deserializer);
     }
     catch (TypeLoadException exception7)
     {
         CreateInstanceError(exception7, clsid, deserializer);
     }
     catch (Exception)
     {
         throw;
     }
     return null;
 }
        internal static FormatInfoData CreateInstance(PSObject so, FormatObjectDeserializer deserializer)
        {
            if (so == null)
            {
                throw PSTraceSource.NewArgumentNullException("so");
            }
            string property = FormatObjectDeserializer.GetProperty(so, "ClassId2e4f51ef21dd47e99d3c952918aff9cd") as string;

            if (property == null)
            {
                string      message     = StringUtil.Format(FormatAndOut_format_xxx.FOD_InvalidClassidProperty, new object[0]);
                ErrorRecord errorRecord = new ErrorRecord(PSTraceSource.NewArgumentException("classid"), "FormatObjectDeserializerInvalidClassidProperty", ErrorCategory.InvalidData, so)
                {
                    ErrorDetails = new ErrorDetails(message)
                };
                deserializer.TerminatingErrorContext.ThrowTerminatingError(errorRecord);
            }
            return(CreateInstance(property, deserializer));
        }
Esempio n. 33
0
 internal override void Deserialize(PSObject so, FormatObjectDeserializer deserializer)
 {
     base.Deserialize(so, deserializer);
     this.objectCount = deserializer.DeserializeIntMemberVariable(so, "objectCount");
 }
Esempio n. 34
0
 internal override void Deserialize(PSObject so, FormatObjectDeserializer deserializer)
 {
     base.Deserialize(so, deserializer);
     this.shapeInfo = (ShapeInfo)deserializer.DeserializeMemberObject(so, "shapeInfo");
 }
Esempio n. 35
0
 internal override void Deserialize(PSObject so, FormatObjectDeserializer deserializer)
 {
     base.Deserialize(so, deserializer);
     this.text = deserializer.DeserializeStringMemberVariableRaw(so, "text");
 }
Esempio n. 36
0
 internal override void Deserialize(PSObject so, FormatObjectDeserializer deserializer)
 {
     base.Deserialize(so, deserializer);
     this.text = deserializer.DeserializeStringMemberVariable(so, "text");
 }
Esempio n. 37
0
 internal override void Deserialize(PSObject so, FormatObjectDeserializer deserializer)
 {
     base.Deserialize(so, deserializer);
     FormatInfoDataListDeserializer <ListViewField> .ReadList(so, "listViewFieldList", this.listViewFieldList, deserializer);
 }
Esempio n. 38
0
 internal override void Deserialize(PSObject so, FormatObjectDeserializer deserializer)
 {
     base.Deserialize(so, deserializer);
     FormatInfoDataListDeserializer<FormatValue>.ReadList(so, "formatValueList", this.formatValueList, deserializer);
     this.frameInfo = (FrameInfo) deserializer.DeserializeMemberObject(so, "frameInfo");
 }
Esempio n. 39
0
 internal virtual void Deserialize(PSObject so, FormatObjectDeserializer deserializer)
 {
 }
Esempio n. 40
0
 internal override void Deserialize(PSObject so, FormatObjectDeserializer deserializer)
 {
     base.Deserialize(so, deserializer);
     FormatInfoDataListDeserializer<FormatValue>.ReadList(so, "formatValueList", this.formatValueList, deserializer);
 }
Esempio n. 41
0
 internal override void Deserialize(PSObject so, FormatObjectDeserializer deserializer)
 {
     base.Deserialize(so, deserializer);
     this.hideHeader = deserializer.DeserializeBoolMemberVariable(so, "hideHeader");
     FormatInfoDataListDeserializer<TableColumnInfo>.ReadList(so, "tableColumnInfoList", this.tableColumnInfoList, deserializer);
 }
Esempio n. 42
0
 internal override void Deserialize(PSObject so, FormatObjectDeserializer deserializer)
 {
     base.Deserialize(so, deserializer);
     this.formatPropertyField = (FormatPropertyField) deserializer.DeserializeMandatoryMemberObject(so, "formatPropertyField");
 }
Esempio n. 43
0
 internal override void Deserialize(PSObject so, FormatObjectDeserializer deserializer)
 {
     base.Deserialize(so, deserializer);
     this.objectCount = deserializer.DeserializeIntMemberVariable(so, "objectCount");
 }
Esempio n. 44
0
 internal override void Deserialize(PSObject so, FormatObjectDeserializer deserializer)
 {
     base.Deserialize(so, deserializer);
     FormatInfoDataListDeserializer<FormatPropertyField>.ReadList(so, "formatPropertyFieldList", this.formatPropertyFieldList, deserializer);
     this.multiLine = deserializer.DeserializeBoolMemberVariable(so, "multiLine");
 }
Esempio n. 45
0
 internal override void Deserialize(PSObject so, FormatObjectDeserializer deserializer)
 {
     base.Deserialize(so, deserializer);
     this.shapeInfo = (ShapeInfo) deserializer.DeserializeMemberObject(so, "shapeInfo");
 }
Esempio n. 46
0
        internal override void Deserialize(PSObject so, FormatObjectDeserializer deserializer)
        {
            base.Deserialize(so, deserializer);

            this.columns = deserializer.DeserializeIntMemberVariable(so, "columns");
        }
Esempio n. 47
0
        internal override void BeginProcessing()
        {
            base.BeginProcessing();

            // Get the Format Enumeration Limit.
            _enumerationLimit = InnerFormatShapeCommand.FormatEnumerationLimit();

            _expressionFactory = new MshExpressionFactory();

            _formatObjectDeserializer = new FormatObjectDeserializer(this.TerminatingErrorContext);
        }
Esempio n. 48
0
 internal override void Deserialize(PSObject so, FormatObjectDeserializer deserializer)
 {
     base.Deserialize(so, deserializer);
     FormatInfoDataListDeserializer <FormatValue> .ReadList(so, "formatValueList", this.formatValueList, deserializer);
 }
Esempio n. 49
0
 internal override void Deserialize(PSObject so, FormatObjectDeserializer deserializer)
 {
     base.Deserialize(so, deserializer);
     this.groupingEntry = (GroupingEntry) deserializer.DeserializeMemberObject(so, "groupingEntry");
 }
Esempio n. 50
0
 internal override void Deserialize(PSObject so, FormatObjectDeserializer deserializer)
 {
     base.Deserialize(so, deserializer);
     this.formatPropertyField = (FormatPropertyField)deserializer.DeserializeMandatoryMemberObject(so, "formatPropertyField");
 }
Esempio n. 51
0
 internal override void Deserialize(PSObject so, FormatObjectDeserializer deserializer)
 {
     base.Deserialize(so, deserializer);
     this.propertyValue = deserializer.DeserializeStringMemberVariable(so, "propertyValue");
     this.alignment = deserializer.DeserializeIntMemberVariable(so, "alignment");
 }
Esempio n. 52
0
 internal override void Deserialize(PSObject so, FormatObjectDeserializer deserializer)
 {
     base.Deserialize(so, deserializer);
     this.propertyValue = deserializer.DeserializeStringMemberVariable(so, "propertyValue");
     this.alignment     = deserializer.DeserializeIntMemberVariable(so, "alignment");
 }
Esempio n. 53
0
 internal override void Deserialize(PSObject so, FormatObjectDeserializer deserializer)
 {
     base.Deserialize(so, deserializer);
     this.columns = deserializer.DeserializeIntMemberVariable(so, "columns");
 }
Esempio n. 54
0
 internal override void Deserialize(PSObject so, FormatObjectDeserializer deserializer)
 {
     base.Deserialize(so, deserializer);
     FormatInfoDataListDeserializer<ListViewField>.ReadList(so, "listViewFieldList", this.listViewFieldList, deserializer);
 }
Esempio n. 55
0
 private static void CreateInstanceError(Exception e, string clsid, FormatObjectDeserializer deserializer)
 {
     string message = StringUtil.Format(FormatAndOut_format_xxx.FOD_InvalidClassid, clsid);
     ErrorRecord errorRecord = new ErrorRecord(e, "FormatObjectDeserializerInvalidClassid", ErrorCategory.InvalidData, null) {
         ErrorDetails = new ErrorDetails(message)
     };
     deserializer.TerminatingErrorContext.ThrowTerminatingError(errorRecord);
 }