15 instantiations of ContentType
WindowsBase (15)
Base\MS\Internal\ContentType.cs (1)
746private static readonly ContentType _emptyContentType = new ContentType("");
Base\MS\Internal\IO\Packaging\Certificate.cs (1)
180new ContentType("application/vnd.openxmlformats-package.digital-signature-certificate");
Base\MS\Internal\IO\Packaging\PartBasedPackageProperties.cs (1)
964= new ContentType("application/vnd.openxmlformats-package.core-properties+xml");
Base\MS\Internal\IO\Packaging\StorageBasedPackageProperties.cs (2)
341return new ContentType(contentType).ToString(); 356SetOleProperty(FormatId.DocumentSummaryInformation, PropertyId.ContentType, new ContentType(value).ToString());
Base\MS\Internal\IO\Packaging\XmlDigitalSignatureProcessor.cs (1)
1310= new ContentType("application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml");
Base\MS\Internal\IO\Packaging\XmlSignatureManifest.cs (1)
611contentType = new ContentType(query.Substring(_contentTypeQueryStringPrefix.Length));
Base\System\IO\Packaging\PackageDigitalSignatureManager.cs (1)
1414private static readonly ContentType _originPartContentType = new ContentType("application/vnd.openxmlformats-package.digital-signature-origin");
Base\System\IO\Packaging\PackagePart.cs (2)
143_contentType = new ContentType(contentType); 221_contentType = new ContentType(contentType);
Base\System\IO\Packaging\ZipPackage.cs (4)
100_contentTypeHelper.AddContentType((PackUriHelper.ValidatedPartUri)partUri, new ContentType(contentType), method, deflateOption, 118_contentTypeHelper.AddContentType((PackUriHelper.ValidatedPartUri)partUri, new ContentType(contentType), method, deflateOption, 1344_defaultDictionary.Add(temporaryUri.PartUriExtension, new ContentType(contentTypeAttributeValue)); 1378_overrideDictionary.Add(partUri, new ContentType(contentTypeAttributeValue));
Shared\MS\Internal\IO\Packaging\PackagingUtilities.cs (1)
41= new ContentType("application/vnd.openxmlformats-package.relationships+xml");
42 references to ContentType
WindowsBase (42)
Base\MS\Internal\ContentType.cs (12)
185internal static ContentType Empty 220internal bool AreTypeAndSubTypeEqual(ContentType contentType) 239internal bool AreTypeAndSubTypeEqual(ContentType contentType, bool allowParameterValuePairs) 323internal class StrongComparer : IEqualityComparer<ContentType> 329public bool Equals(ContentType x, ContentType y) 346public int GetHashCode(ContentType obj) 352internal class WeakComparer : IEqualityComparer<ContentType> 358public bool Equals(ContentType x, ContentType y) 375public int GetHashCode(ContentType obj) 746private static readonly ContentType _emptyContentType = new ContentType("");
Base\MS\Internal\IO\Packaging\Certificate.cs (2)
73static internal ContentType ContentType 179private static readonly ContentType _certificatePartContentType =
Base\MS\Internal\IO\Packaging\InternalRelationshipCollection.cs (1)
651private void ThrowIfIncorrectContentType(ContentType contentType)
Base\MS\Internal\IO\Packaging\PartBasedPackageProperties.cs (1)
963private static readonly ContentType _coreDocumentPropertiesContentType
Base\MS\Internal\IO\Packaging\PartManifestEntry.cs (3)
42internal ContentType ContentType { get { return _contentType; } } 70internal PartManifestEntry(Uri uri, ContentType contentType, String hashAlgorithm, 124private ContentType _contentType;
Base\MS\Internal\IO\Packaging\XmlDigitalSignatureProcessor.cs (2)
275internal static ContentType ContentType 1309private static readonly ContentType _xmlSignaturePartType
Base\MS\Internal\IO\Packaging\XmlSignatureManifest.cs (5)
215private static Uri ParsePartUri(XmlReader reader, out ContentType contentType) 218contentType = ContentType.Empty; 248ContentType contentType = null; 595private static Uri ParsePartUriAttribute(String attrValue, out ContentType contentType) 599contentType = ContentType.Empty; // out argument must always be set
Base\System\IO\Packaging\PackageDigitalSignatureManager.cs (1)
1414private static readonly ContentType _originPartContentType = new ContentType("application/vnd.openxmlformats-package.digital-signature-origin");
Base\System\IO\Packaging\PackagePart.cs (2)
617internal ContentType ValidatedContentType 919private ContentType _contentType;
Base\System\IO\Packaging\ZipPackage.cs (12)
278ContentType contentType = _contentTypeHelper.GetContentType(validatedPartUri); 779ContentType contentType = _contentTypeHelper.GetContentType(partUri); 880_defaultDictionary = new Dictionary<string, ContentType>(_defaultDictionaryInitialSize, _extensionEqualityComparer); 924internal void AddContentType(PackUriHelper.ValidatedPartUri partUri, ContentType contentType, 979internal ContentType GetContentType(PackUriHelper.ValidatedPartUri partUri) 1107_overrideDictionary = new Dictionary<PackUriHelper.ValidatedPartUri, ContentType>(_overrideDictionaryInitialSize); 1403private void AddOverrideElement(PackUriHelper.ValidatedPartUri partUri, ContentType contentType, bool inStreamingCreation) 1429private void AddDefaultElement(string extension, ContentType contentType, bool inStreamingCreation) 1446private void WriteOverrideElement(XmlWriter xmlWriter, PackUriHelper.ValidatedPartUri partUri, ContentType contentType) 1455private void WriteDefaultElement(XmlWriter xmlWriter, string extension, ContentType contentType) 1513private Dictionary<PackUriHelper.ValidatedPartUri, ContentType> _overrideDictionary; 1514private Dictionary<string, ContentType> _defaultDictionary;
Shared\MS\Internal\IO\Packaging\PackagingUtilities.cs (1)
40internal static readonly ContentType RelationshipPartContentType