121 references to PackageXmlEnum
System.IO.Packaging (121)
System\IO\Packaging\PackageXmlStringTable.cs (41)
22s_xmlstringtable[1] = new XmlStringTableStruct(nameString, PackageXmlEnum.NotDefined, null); 24s_xmlstringtable[2] = new XmlStringTableStruct(nameString, PackageXmlEnum.NotDefined, null); 26s_xmlstringtable[3] = new XmlStringTableStruct(nameString, PackageXmlEnum.NotDefined, null); 28s_xmlstringtable[4] = new XmlStringTableStruct(nameString, PackageXmlEnum.NotDefined, null); 30s_xmlstringtable[5] = new XmlStringTableStruct(nameString, PackageXmlEnum.NotDefined, null); 32s_xmlstringtable[6] = new XmlStringTableStruct(nameString, PackageXmlEnum.NotDefined, null); 34s_xmlstringtable[7] = new XmlStringTableStruct(nameString, PackageXmlEnum.NotDefined, null); 36s_xmlstringtable[8] = new XmlStringTableStruct(nameString, PackageXmlEnum.NotDefined, null); 38s_xmlstringtable[9] = new XmlStringTableStruct(nameString, PackageXmlEnum.PackageCorePropertiesNamespace, "NotSpecified"); 40s_xmlstringtable[10] = new XmlStringTableStruct(nameString, PackageXmlEnum.NotDefined, "NotSpecified"); 42s_xmlstringtable[11] = new XmlStringTableStruct(nameString, PackageXmlEnum.DublinCorePropertiesNamespace, "String"); 44s_xmlstringtable[12] = new XmlStringTableStruct(nameString, PackageXmlEnum.DublinCorePropertiesNamespace, "String"); 46s_xmlstringtable[13] = new XmlStringTableStruct(nameString, PackageXmlEnum.DublinCorePropertiesNamespace, "String"); 48s_xmlstringtable[14] = new XmlStringTableStruct(nameString, PackageXmlEnum.DublinCorePropertiesNamespace, "String"); 50s_xmlstringtable[15] = new XmlStringTableStruct(nameString, PackageXmlEnum.DublinCorePropertiesNamespace, "String"); 52s_xmlstringtable[0x10] = new XmlStringTableStruct(nameString, PackageXmlEnum.DublinCorePropertiesNamespace, "String"); 54s_xmlstringtable[0x11] = new XmlStringTableStruct(nameString, PackageXmlEnum.DublinCoreTermsNamespace, "DateTime"); 56s_xmlstringtable[0x12] = new XmlStringTableStruct(nameString, PackageXmlEnum.DublinCoreTermsNamespace, "DateTime"); 58s_xmlstringtable[0x13] = new XmlStringTableStruct(nameString, PackageXmlEnum.PackageCorePropertiesNamespace, "String"); 60s_xmlstringtable[20] = new XmlStringTableStruct(nameString, PackageXmlEnum.PackageCorePropertiesNamespace, "String"); 62s_xmlstringtable[0x15] = new XmlStringTableStruct(nameString, PackageXmlEnum.PackageCorePropertiesNamespace, "String"); 64s_xmlstringtable[0x16] = new XmlStringTableStruct(nameString, PackageXmlEnum.PackageCorePropertiesNamespace, "String"); 66s_xmlstringtable[0x17] = new XmlStringTableStruct(nameString, PackageXmlEnum.PackageCorePropertiesNamespace, "String"); 68s_xmlstringtable[0x18] = new XmlStringTableStruct(nameString, PackageXmlEnum.PackageCorePropertiesNamespace, "String"); 70s_xmlstringtable[0x19] = new XmlStringTableStruct(nameString, PackageXmlEnum.PackageCorePropertiesNamespace, "String"); 72s_xmlstringtable[0x1a] = new XmlStringTableStruct(nameString, PackageXmlEnum.PackageCorePropertiesNamespace, "DateTime"); 75private static void CheckIdRange(PackageXmlEnum id) 77if ((id <= PackageXmlEnum.NotDefined) || (id >= (PackageXmlEnum.LastPrinted | PackageXmlEnum.XmlSchemaInstanceNamespace))) 83internal static PackageXmlEnum GetEnumOf(object xmlString) 89return (PackageXmlEnum)i; 92return PackageXmlEnum.NotDefined; 95internal static string? GetValueType(PackageXmlEnum id) 101internal static PackageXmlEnum GetXmlNamespace(PackageXmlEnum id) 107internal static string GetXmlString(PackageXmlEnum id) 113internal static object GetXmlStringAsObject(PackageXmlEnum id) 133private readonly PackageXmlEnum _namespace; 136internal XmlStringTableStruct(string nameString, PackageXmlEnum ns, string? valueType) 145internal PackageXmlEnum Namespace => _namespace;
System\IO\Packaging\PartBasedPackageProperties.cs (80)
56return (string?)GetPropertyValue(PackageXmlEnum.Creator); 60RecordNewBinding(PackageXmlEnum.Creator, value); 71return (string?)GetPropertyValue(PackageXmlEnum.Title); 75RecordNewBinding(PackageXmlEnum.Title, value); 86return (string?)GetPropertyValue(PackageXmlEnum.Subject); 90RecordNewBinding(PackageXmlEnum.Subject, value); 102return (string?)GetPropertyValue(PackageXmlEnum.Category); 106RecordNewBinding(PackageXmlEnum.Category, value); 119return (string?)GetPropertyValue(PackageXmlEnum.Keywords); 123RecordNewBinding(PackageXmlEnum.Keywords, value); 134return (string?)GetPropertyValue(PackageXmlEnum.Description); 138RecordNewBinding(PackageXmlEnum.Description, value); 152string? contentType = GetPropertyValue(PackageXmlEnum.ContentType) as string; 158RecordNewBinding(PackageXmlEnum.ContentType, value); 170return (string?)GetPropertyValue(PackageXmlEnum.ContentStatus); 174RecordNewBinding(PackageXmlEnum.ContentStatus, value); 185return (string?)GetPropertyValue(PackageXmlEnum.Version); 189RecordNewBinding(PackageXmlEnum.Version, value); 202return (string?)GetPropertyValue(PackageXmlEnum.Revision); 206RecordNewBinding(PackageXmlEnum.Revision, value); 217return GetDateTimePropertyValue(PackageXmlEnum.Created); 221RecordNewBinding(PackageXmlEnum.Created, value); 232return GetDateTimePropertyValue(PackageXmlEnum.Modified); 236RecordNewBinding(PackageXmlEnum.Modified, value); 250return (string?)GetPropertyValue(PackageXmlEnum.LastModifiedBy); 254RecordNewBinding(PackageXmlEnum.LastModifiedBy, value); 265return GetDateTimePropertyValue(PackageXmlEnum.LastPrinted); 269RecordNewBinding(PackageXmlEnum.LastPrinted, value); 280return (string?)GetPropertyValue(PackageXmlEnum.Language); 284RecordNewBinding(PackageXmlEnum.Language, value); 295return (string?)GetPropertyValue(PackageXmlEnum.Identifier); 299RecordNewBinding(PackageXmlEnum.Identifier, value); 342private object? GetPropertyValue(PackageXmlEnum propertyName) 352private Nullable<DateTime> GetDateTimePropertyValue(PackageXmlEnum propertyName) 364private void RecordNewBinding(PackageXmlEnum propertyenum, object? value) 373private void RecordNewBinding(PackageXmlEnum propertyenum, object? value, bool initializing, XmlReader? reader) 495|| (object)reader.NamespaceURI != PackageXmlStringTable.GetXmlStringAsObject(PackageXmlEnum.PackageCorePropertiesNamespace) 496|| (object)reader.LocalName != PackageXmlStringTable.GetXmlStringAsObject(PackageXmlEnum.CoreProperties)) 539PackageXmlEnum xmlStringIndex = PackageXmlStringTable.GetEnumOf(localName); 571PackageXmlStringTable.GetXmlStringAsObject(PackageXmlEnum.DublinCoreTermsNamespace) 584PackageXmlStringTable.GetXmlStringAsObject(PackageXmlEnum.DublinCoreTermsNamespace), 605string? typeValue = reader.GetAttribute(PackageXmlStringTable.GetXmlString(PackageXmlEnum.Type), 606PackageXmlStringTable.GetXmlString(PackageXmlEnum.XmlSchemaInstanceNamespace)); 744_xmlWriter.WriteStartElement(PackageXmlStringTable.GetXmlString(PackageXmlEnum.CoreProperties), // local name 745PackageXmlStringTable.GetXmlString(PackageXmlEnum.PackageCorePropertiesNamespace)); // namespace 748_xmlWriter.WriteAttributeString(PackageXmlStringTable.GetXmlString(PackageXmlEnum.XmlNamespacePrefix), 749PackageXmlStringTable.GetXmlString(PackageXmlEnum.DublinCorePropertiesNamespacePrefix), 751PackageXmlStringTable.GetXmlString(PackageXmlEnum.DublinCorePropertiesNamespace)); 754_xmlWriter.WriteAttributeString(PackageXmlStringTable.GetXmlString(PackageXmlEnum.XmlNamespacePrefix), 755PackageXmlStringTable.GetXmlString(PackageXmlEnum.DublincCoreTermsNamespacePrefix), 757PackageXmlStringTable.GetXmlString(PackageXmlEnum.DublinCoreTermsNamespace)); 759_xmlWriter.WriteAttributeString(PackageXmlStringTable.GetXmlString(PackageXmlEnum.XmlNamespacePrefix), 760PackageXmlStringTable.GetXmlString(PackageXmlEnum.XmlSchemaInstanceNamespacePrefix), 762PackageXmlStringTable.GetXmlString(PackageXmlEnum.XmlSchemaInstanceNamespace)); 771foreach (KeyValuePair<PackageXmlEnum, object> entry in _propertyDictionary) 775PackageXmlEnum propertyNamespace = PackageXmlStringTable.GetXmlNamespace(entry.Key); 782if (propertyNamespace == PackageXmlEnum.DublinCoreTermsNamespace) 785_xmlWriter.WriteStartAttribute(PackageXmlStringTable.GetXmlString(PackageXmlEnum.Type), 786PackageXmlStringTable.GetXmlString(PackageXmlEnum.XmlSchemaInstanceNamespace)); 790PackageXmlStringTable.GetXmlString(PackageXmlEnum.DublinCoreTermsNamespace)); 838private readonly Dictionary<PackageXmlEnum, object> _propertyDictionary = new Dictionary<PackageXmlEnum, object>(NumCoreProperties); 858private static readonly PackageXmlEnum[] s_validProperties = new PackageXmlEnum[] { 859PackageXmlEnum.Creator, 860PackageXmlEnum.Identifier, 861PackageXmlEnum.Title, 862PackageXmlEnum.Subject, 863PackageXmlEnum.Description, 864PackageXmlEnum.Language, 865PackageXmlEnum.Created, 866PackageXmlEnum.Modified, 867PackageXmlEnum.ContentType, 868PackageXmlEnum.Keywords, 869PackageXmlEnum.Category, 870PackageXmlEnum.Version, 871PackageXmlEnum.LastModifiedBy, 872PackageXmlEnum.ContentStatus, 873PackageXmlEnum.Revision, 874PackageXmlEnum.LastPrinted