/********************************************************************++ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ namespace System.Management.Automation { /// /// This class contains strings required for serialization /// internal static class SerializationStrings { #region element tags /// /// Element tag for root node /// internal const string RootElementTag = "Objs"; #region PSObject /// /// Element tag for PSObject /// internal const string PSObjectTag = "Obj"; /// /// Element tag for properties /// internal const string AdapterProperties = "Props"; /// /// TypeNames tag /// internal const string TypeNamesTag = "TN"; /// /// Tag for type item in typenames /// internal const string TypeNamesItemTag = "T"; /// /// TypeName reference /// internal const string TypeNamesReferenceTag = "TNRef"; /// /// Memberset /// internal const string MemberSet = "MS"; /// /// Individual notes /// internal const string NoteProperty = "N"; /// /// Tag for ToString value /// internal const string ToStringElementTag = "ToString"; #endregion PSObject #region known container tags /// /// Element tag used for IEnumerables. /// internal const string CollectionTag = "IE"; /// /// Element tag used for Dictionary /// internal const string DictionaryTag = "DCT"; /// /// Element tag used for Dictionary entry /// internal const string DictionaryEntryTag = "En"; /// /// Value of name attribute for dictionary key part in dictionary entry /// internal const string DictionaryKey = "Key"; /// /// Value of name attribute for dictionary value part in dictionary entry /// internal const string DictionaryValue = "Value"; /// /// Element tag used for Stack /// internal const string StackTag = "STK"; /// /// Element tag used for Queue /// internal const string QueueTag = "QUE"; /// /// Element tag used for List /// internal const string ListTag = "LST"; #endregion known container tags #region primitive known type tags /// /// Element tag for char property. /// /// This property is used for System.Char type internal const string CharTag = "C"; /// /// Element tag for guid property. /// /// This property is used for System.Guid type internal const string GuidTag = "G"; /// /// Element tag for boolean property. /// /// This property is used for System.Boolean type internal const string BooleanTag = "B"; /// /// Element tag for unsignedByte property. /// /// This property is used for System.Byte type internal const string UnsignedByteTag = "By"; /// /// Element tag for dateTime property. /// /// This property is used for System.DateTime type internal const string DateTimeTag = "DT"; /// /// Element tag for decimal property. /// /// This property is used for System.Decimal type internal const string DecimalTag = "D"; /// /// Element tag for double property. /// /// This property is used for System.Double type internal const string DoubleTag = "Db"; /// /// Element tag for duration property. /// /// This property is used for System.TimeSpan type internal const string DurationTag = "TS"; /// /// Element tag for float property. /// /// This property is used for System.Single type internal const string FloatTag = "Sg"; /// /// Element tag for int property. /// /// This property is used for System.Int32 type internal const string IntTag = "I32"; /// /// Element tag for long property. /// /// This property is used for System.Int64 type internal const string LongTag = "I64"; /// /// Element tag for byte property. /// /// This property is used for System.SByte type internal const string ByteTag = "SB"; /// /// Element tag for short property. /// /// This property is used for System.Int16 type internal const string ShortTag = "I16"; /// /// Element tag for base64Binary property. /// /// This property is used for System.IO.Stream type internal const string Base64BinaryTag = "BA"; /// /// Element tag for scriptblock property. /// /// This property is used for System.Management.Automation.ScriptBlock type internal const string ScriptBlockTag = "SBK"; /// /// Element tag for string property. /// /// This property is used for System.String type internal const string StringTag = "S"; /// /// Element tag for secure string property /// /// This property is used for System.Security.SecureString type internal const string SecureStringTag = "SS"; /// /// Element tag for unsignedShort property. /// /// This property is used for System.UInt16 Stream type internal const string UnsignedShortTag = "U16"; /// /// Element tag for unsignedInt property. /// /// This property is used for System.UInt32 type internal const string UnsignedIntTag = "U32"; /// /// Element tag for unsignedLong property. /// /// This property is used for System.Long type internal const string UnsignedLongTag = "U64"; /// /// Element tag for anyUri property. /// /// This property is used for System.Uri type internal const string AnyUriTag = "URI"; /// /// Element tag for Version property /// internal const string VersionTag = "Version"; /// /// Element tag for SemanticVersion property /// internal const string SemanticVersionTag = "SemanticVersion"; /// /// Element tag for XmlDocument /// internal const string XmlDocumentTag = "XD"; /// /// Element tag for property whose value is null /// internal const string NilTag = "Nil"; /// /// Element tag for PSObjectReference property. /// /// This property is used for a reference to a property bag internal const string ReferenceTag = "Ref"; #region progress record internal const string ProgressRecord = "PR"; internal const string ProgressRecordActivityId = "AI"; internal const string ProgressRecordParentActivityId = "PI"; internal const string ProgressRecordActivity = "AV"; internal const string ProgressRecordStatusDescription = "SD"; internal const string ProgressRecordCurrentOperation = "CO"; internal const string ProgressRecordPercentComplete = "PC"; internal const string ProgressRecordSecondsRemaining = "SR"; internal const string ProgressRecordType = "T"; #endregion progress record #endregion primitive known type tags #endregion element tags #region attribute tags /// /// String for reference id attribute /// internal const string ReferenceIdAttribute = "RefId"; /// /// String for name attribute /// internal const string NameAttribute = "N"; /// /// String for version attribute /// internal const string VersionAttribute = "Version"; /// /// String for stream attribute /// internal const string StreamNameAttribute = "S"; #endregion attribute tags #region namespace values /// /// Monad namespace /// internal const string MonadNamespace = "http://schemas.microsoft.com/powershell/2004/04"; /// /// Prefix string for monad namespace /// internal const string MonadNamespacePrefix = "ps"; #endregion namespace values }; }