7 instantiations of ContentType
System.IO.Packaging (7)
System\IO\Packaging\PackagePart.cs (2)
121_contentType = new ContentType(contentType); 191_contentType = new ContentType(contentType);
System\IO\Packaging\PackagingUtilities.cs (1)
16= new ContentType("application/vnd.openxmlformats-package.relationships+xml");
System\IO\Packaging\PartBasedPackageProperties.cs (1)
848= new ContentType("application/vnd.openxmlformats-package.core-properties+xml");
System\IO\Packaging\ZipPackage.cs (3)
61_contentTypeHelper.AddContentType((PackUriHelper.ValidatedPartUri)partUri, new ContentType(contentType), level); 844_defaultDictionary.Add(temporaryUri.PartUriExtension, new ContentType(contentTypeAttributeValue!)); 874_overrideDictionary.Add(partUri, new ContentType(contentTypeAttributeValue!));
21 references to ContentType
System.IO.Packaging (21)
System\IO\Packaging\ContentType.cs (2)
159internal bool AreTypeAndSubTypeEqual(ContentType contentType) 178internal bool AreTypeAndSubTypeEqual(ContentType contentType, bool allowParameterValuePairs)
System\IO\Packaging\InternalRelationshipCollection.cs (1)
568private static void ThrowIfIncorrectContentType(ContentType contentType)
System\IO\Packaging\PackagePart.cs (2)
566internal ContentType ValidatedContentType 801private ContentType? _contentType;
System\IO\Packaging\PackagingUtilities.cs (1)
15internal static readonly ContentType RelationshipPartContentType
System\IO\Packaging\PartBasedPackageProperties.cs (1)
847private static readonly ContentType s_coreDocumentPropertiesContentType
System\IO\Packaging\ZipPackage.cs (14)
165ContentType? contentType = _contentTypeHelper.GetContentType(validatedPartUri); 542_defaultDictionary = new Dictionary<string, ContentType>(DefaultDictionaryInitialSize, s_extensionEqualityComparer); 575internal void AddContentType(PackUriHelper.ValidatedPartUri partUri, ContentType contentType, 592|| (_defaultDictionary.TryGetValue(extension, out ContentType? value) 608internal ContentType? GetContentType(PackUriHelper.ValidatedPartUri partUri) 614if (_overrideDictionary.TryGetValue(partUri, out ContentType? val)) 622if (_defaultDictionary.TryGetValue(extension, out ContentType? value)) 702_overrideDictionary ??= new Dictionary<PackUriHelper.ValidatedPartUri, ContentType>(OverrideDictionaryInitialSize); 897private void AddOverrideElement(PackUriHelper.ValidatedPartUri partUri, ContentType contentType) 913private void AddDefaultElement(string extension, ContentType contentType) 922private static void WriteOverrideElement(XmlWriter xmlWriter, PackUriHelper.ValidatedPartUri partUri, ContentType contentType) 931private static void WriteDefaultElement(XmlWriter xmlWriter, string extension, ContentType contentType) 958private Dictionary<PackUriHelper.ValidatedPartUri, ContentType>? _overrideDictionary; 959private readonly Dictionary<string, ContentType> _defaultDictionary;