62 instantiations of FileFormatException
PresentationCore (29)
MS\Internal\FontCache\FontCacheUtil.cs (1)
869
throw new
FileFormatException
(new Uri(fileName));
MS\Internal\FontFace\CompositeFontParser.cs (2)
884
throw new
FileFormatException
(new Uri(_reader.BaseURI, UriKind.RelativeOrAbsolute), x);
954
throw new
FileFormatException
(new Uri(fileName, UriKind.RelativeOrAbsolute), message, innerException);
MS\Internal\FontFace\FontDriver.cs (3)
163
throw new
FileFormatException
(SourceUri, e);
207
throw new
FileFormatException
(SourceUri);
231
throw new
FileFormatException
(SourceUri, e);
MS\Internal\Shaping\OpenTypeCommon.cs (1)
990
throw new
FileFormatException
();
MS\Internal\Shaping\OpenTypeLayout.cs (6)
152
if ((offset + 1) >= m_length) throw new
FileFormatException
();
159
if ((offset + 1) >= m_length) throw new
FileFormatException
();
166
if ((offset + 3) >= m_length) throw new
FileFormatException
();
173
if ((offset+1)>=m_length) throw new
FileFormatException
();
1253
throw new
FileFormatException
();
1269
throw new
FileFormatException
();
MS\Internal\Shaping\Substitution.cs (1)
236
throw new
FileFormatException
();
MS\Internal\Text\TextInterface\DWriteUtil.cs (1)
28
throw new System.IO.
FileFormatException
();
src\Microsoft.DotNet.Wpf\src\Common\Graphics\wgx_render.cs (11)
813
return new System.IO.
FileFormatException
(null, SR.Image_UnknownFormat, exceptionForHR);
854
return new System.IO.
FileFormatException
(null, SR.Image_DecoderError, exceptionForHR);
857
return new System.IO.
FileFormatException
(null, SR.Image_HeaderError, exceptionForHR);
887
return new System.IO.
FileFormatException
(null, SR.Image_UnexpectedMetadataType, exceptionForHR);
890
return new System.IO.
FileFormatException
(null, SR.Image_RequestOnlyValidAtMetadataRoot, exceptionForHR);
896
return new System.IO.
FileFormatException
(null, SR.Image_DuplicateMetadataPresent, exceptionForHR);
899
return new System.IO.
FileFormatException
(null, SR.Image_PropertyUnexpectedType, exceptionForHR);
902
return new System.IO.
FileFormatException
(null, SR.Image_TooMuchMetadata, exceptionForHR);
914
return new System.IO.
FileFormatException
(null, SR.Image_InvalidColorContext, exceptionForHR);
945
return new System.IO.
FileFormatException
(SR.Media_FileFormatNotSupported, exceptionForHR);
948
return new System.IO.
FileFormatException
(SR.Media_PlaylistFormatNotSupported, exceptionForHR);
System\Windows\Media\GlyphTypeface.cs (1)
154
throw new System.IO.
FileFormatException
(typefaceSource);
System\Windows\Media\Imaging\BitmapDecoder.cs (2)
114
throw new
FileFormatException
(bitmapUri, SR.Image_CantDealWithUri);
158
throw new
FileFormatException
(null, SR.Image_CantDealWithStream);
PresentationFramework (22)
System\Windows\Documents\FixedDocument.cs (3)
892
throw new
FileFormatException
(SR.InvalidDSContentType);
921
throw new
FileFormatException
(SR.InvalidSFContentType);
925
throw new
FileFormatException
(SR.InvalidStoryFragmentsMarkup);
System\Windows\Documents\FixedSchema.cs (14)
55
throw new
FileFormatException
(SR.XpsValidatingLoaderUnsupportedEncoding);
62
throw new
FileFormatException
(SR.XpsValidatingLoaderUnsupportedEncoding);
223
throw new
FileFormatException
(SR.XpsValidatingLoaderUnsupportedRootNamespaceUri);
332
throw new
FileFormatException
(SR.XpsValidatingLoaderUnsupportedMimeType);
591
throw new
FileFormatException
(SR.XpsValidatingLoaderMoreThanOnePrintTicketPart);
602
throw new
FileFormatException
(SR.XpsValidatingLoaderPrintTicketHasIncorrectType);
613
throw new
FileFormatException
(SR.XpsValidatingLoaderMoreThanOneThumbnailPart);
625
throw new
FileFormatException
(SR.XpsValidatingLoaderThumbnailHasIncorrectType);
645
throw new
FileFormatException
(SR.XpsValidatingLoaderRestrictedFontHasIncorrectType);
661
throw new
FileFormatException
(SR.XpsValidatingLoaderMoreThanOneDiscardControlInPackage);
672
throw new
FileFormatException
(SR.XpsValidatingLoaderDiscardControlHasIncorrectType);
684
throw new
FileFormatException
(SR.XpsValidatingLoaderMoreThanOneThumbnailInPackage);
696
throw new
FileFormatException
(SR.XpsValidatingLoaderThumbnailHasIncorrectType);
735
throw new
FileFormatException
(SR.XpsValidatingLoaderUnsupportedMimeType);
System\Windows\Documents\XPSS0ValidatingLoader.cs (5)
91
throw new
FileFormatException
(SR.XpsValidatingLoaderUriNotInSamePackage);
147
throw new
FileFormatException
(SR.XpsValidatingLoaderUnsupportedMimeType);
189
throw new
FileFormatException
(SR.XpsValidatingLoaderDuplicateReference);
217
throw new
FileFormatException
(SR.XpsValidatingLoaderUnlistedResource);
222
throw new
FileFormatException
(SR.XpsValidatingLoaderUnsupportedMimeType);
PresentationUI (2)
MS\Internal\Documents\RightsManagementManager.cs (1)
1423
new
FileFormatException
());
MS\Internal\Documents\RightsManagementProvider.cs (1)
1282
throw new
FileFormatException
(
System.IO.Packaging (9)
System\IO\Packaging\InternalRelationshipCollection.cs (1)
571
throw new
FileFormatException
(SR.RelationshipPartIncorrectContentType);
System\IO\Packaging\Package.cs (1)
417
throw new
FileFormatException
(SR.BadPackageFormat);
System\IO\Packaging\PackagingUtilities.cs (1)
53
throw new
FileFormatException
(SR.EncodingNotSupported);
System\IO\Packaging\PartBasedPackageProperties.cs (4)
441
throw new
FileFormatException
(SR.NoExternalTargetForMetadataRelationship);
449
throw new
FileFormatException
(SR.DanglingMetadataRelationship);
454
throw new
FileFormatException
(SR.WrongContentTypeForPropertyPart);
469
throw new
FileFormatException
(SR.MoreThanOneMetadataRelationships);
System\IO\Packaging\ZipPackage.cs (2)
300
throw new
FileFormatException
(SR.ZipZeroSizeFileIsNotValidArchive);
335
throw new
FileFormatException
(SR.FileContainsCorruptedData);
16 references to FileFormatException
PresentationCore (11)
MS\Internal\Shaping\OpenTypeLayout.cs (7)
322
catch (
FileFormatException
)
339
catch (
FileFormatException
)
375
catch (
FileFormatException
)
393
catch (
FileFormatException
)
921
catch (
FileFormatException
)
998
catch (
FileFormatException
)
1127
catch (
FileFormatException
)
MS\Internal\Shaping\OpenTypeLayoutCache.cs (1)
350
catch (
FileFormatException
)
System\Windows\Media\FontFamily.cs (1)
545
catch (
FileFormatException
)
System\Windows\Media\Imaging\BitmapImage.cs (1)
571
catch (
FileFormatException
)
System\Windows\Media\Imaging\BitmapSource.cs (1)
1174
catch (
FileFormatException
)
PresentationFramework (3)
MS\Internal\IO\Packaging\XpsFilter.cs (1)
432
catch (
FileFormatException
ex)
System\Windows\ColorConvertedBitmapExtension.cs (1)
130
catch (
FileFormatException
)
System\Windows\Documents\WpfPayload.cs (1)
346
catch (System.IO.
FileFormatException
)
PresentationUI (1)
MS\Internal\Documents\Application\RightsManagementErrorHandler.cs (1)
259
(exception is System.IO.
FileFormatException
))
WindowsBase (1)
WindowsBase.cs (1)
10
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.
FileFormatException
))]