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