7 instantiations of ContentType
System.IO.Packaging (7)
System\IO\Packaging\PackagePart.cs (2)
115_contentType = new ContentType(contentType); 185_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)
64_contentTypeHelper.AddContentType((PackUriHelper.ValidatedPartUri)partUri, new ContentType(contentType), level); 1203_defaultDictionary.Add(temporaryUri.PartUriExtension, new ContentType(contentTypeAttributeValue!)); 1232_overrideDictionary.Add(partUri, new ContentType(contentTypeAttributeValue!));
22 references to ContentType
System.IO.Packaging (22)
System\IO\Packaging\ContentType.cs (2)
156internal bool AreTypeAndSubTypeEqual(ContentType contentType) 175internal bool AreTypeAndSubTypeEqual(ContentType contentType, bool allowParameterValuePairs)
System\IO\Packaging\InternalRelationshipCollection.cs (1)
558private static void ThrowIfIncorrectContentType(ContentType contentType)
System\IO\Packaging\PackagePart.cs (2)
558internal ContentType ValidatedContentType 792private 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 (15)
216ContentType? contentType = _contentTypeHelper.GetContentType(validatedPartUri); 686ContentType? contentType = _contentTypeHelper.GetContentType(partUri); 775_defaultDictionary = new Dictionary<string, ContentType>(DefaultDictionaryInitialSize, s_extensionEqualityComparer); 810internal void AddContentType(PackUriHelper.ValidatedPartUri partUri, ContentType contentType, 827|| (_defaultDictionary.TryGetValue(extension, out ContentType? value) 847internal ContentType? GetContentType(PackUriHelper.ValidatedPartUri partUri) 853if (_overrideDictionary.TryGetValue(partUri, out ContentType? val)) 861if (_defaultDictionary.TryGetValue(extension, out ContentType? value)) 949_overrideDictionary ??= new Dictionary<PackUriHelper.ValidatedPartUri, ContentType>( 1255private void AddOverrideElement(PackUriHelper.ValidatedPartUri partUri, ContentType contentType) 1271private void AddDefaultElement(string extension, ContentType contentType) 1280private static void WriteOverrideElement(XmlWriter xmlWriter, PackUriHelper.ValidatedPartUri partUri, ContentType contentType) 1289private static void WriteDefaultElement(XmlWriter xmlWriter, string extension, ContentType contentType) 1316private Dictionary<PackUriHelper.ValidatedPartUri, ContentType>? _overrideDictionary; 1317private readonly Dictionary<string, ContentType> _defaultDictionary;