62 instantiations of FileFormatException
PresentationCore (29)
MS\Internal\FontCache\FontCacheUtil.cs (1)
849
throw new
FileFormatException
(new Uri(fileName));
MS\Internal\FontFace\CompositeFontParser.cs (2)
872
throw new
FileFormatException
(new Uri(_reader.BaseURI, UriKind.RelativeOrAbsolute), x);
942
throw new
FileFormatException
(new Uri(fileName, UriKind.RelativeOrAbsolute), message, innerException);
MS\Internal\FontFace\FontDriver.cs (3)
149
throw new
FileFormatException
(SourceUri, e);
193
throw new
FileFormatException
(SourceUri);
217
throw new
FileFormatException
(SourceUri, e);
MS\Internal\Shaping\OpenTypeCommon.cs (1)
986
throw new
FileFormatException
();
MS\Internal\Shaping\OpenTypeLayout.cs (6)
147
if ((offset + 1) >= m_length) throw new
FileFormatException
();
154
if ((offset + 1) >= m_length) throw new
FileFormatException
();
161
if ((offset + 3) >= m_length) throw new
FileFormatException
();
168
if ((offset+1)>=m_length) throw new
FileFormatException
();
1248
throw new
FileFormatException
();
1264
throw new
FileFormatException
();
MS\Internal\Shaping\Substitution.cs (1)
233
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)
805
return new System.IO.
FileFormatException
(null, SR.Image_UnknownFormat, exceptionForHR);
846
return new System.IO.
FileFormatException
(null, SR.Image_DecoderError, exceptionForHR);
849
return new System.IO.
FileFormatException
(null, SR.Image_HeaderError, exceptionForHR);
879
return new System.IO.
FileFormatException
(null, SR.Image_UnexpectedMetadataType, exceptionForHR);
882
return new System.IO.
FileFormatException
(null, SR.Image_RequestOnlyValidAtMetadataRoot, exceptionForHR);
888
return new System.IO.
FileFormatException
(null, SR.Image_DuplicateMetadataPresent, exceptionForHR);
891
return new System.IO.
FileFormatException
(null, SR.Image_PropertyUnexpectedType, exceptionForHR);
894
return new System.IO.
FileFormatException
(null, SR.Image_TooMuchMetadata, exceptionForHR);
906
return new System.IO.
FileFormatException
(null, SR.Image_InvalidColorContext, exceptionForHR);
937
return new System.IO.
FileFormatException
(SR.Media_FileFormatNotSupported, exceptionForHR);
940
return new System.IO.
FileFormatException
(SR.Media_PlaylistFormatNotSupported, exceptionForHR);
System\Windows\Media\GlyphTypeface.cs (1)
146
throw new System.IO.
FileFormatException
(typefaceSource);
System\Windows\Media\Imaging\BitmapDecoder.cs (2)
96
throw new
FileFormatException
(bitmapUri, SR.Image_CantDealWithUri);
140
throw new
FileFormatException
(null, SR.Image_CantDealWithStream);
PresentationFramework (22)
System\Windows\Documents\FixedDocument.cs (3)
881
throw new
FileFormatException
(SR.InvalidDSContentType);
910
throw new
FileFormatException
(SR.InvalidSFContentType);
914
throw new
FileFormatException
(SR.InvalidStoryFragmentsMarkup);
System\Windows\Documents\FixedSchema.cs (14)
46
throw new
FileFormatException
(SR.XpsValidatingLoaderUnsupportedEncoding);
53
throw new
FileFormatException
(SR.XpsValidatingLoaderUnsupportedEncoding);
214
throw new
FileFormatException
(SR.XpsValidatingLoaderUnsupportedRootNamespaceUri);
323
throw new
FileFormatException
(SR.XpsValidatingLoaderUnsupportedMimeType);
582
throw new
FileFormatException
(SR.XpsValidatingLoaderMoreThanOnePrintTicketPart);
593
throw new
FileFormatException
(SR.XpsValidatingLoaderPrintTicketHasIncorrectType);
604
throw new
FileFormatException
(SR.XpsValidatingLoaderMoreThanOneThumbnailPart);
616
throw new
FileFormatException
(SR.XpsValidatingLoaderThumbnailHasIncorrectType);
636
throw new
FileFormatException
(SR.XpsValidatingLoaderRestrictedFontHasIncorrectType);
652
throw new
FileFormatException
(SR.XpsValidatingLoaderMoreThanOneDiscardControlInPackage);
663
throw new
FileFormatException
(SR.XpsValidatingLoaderDiscardControlHasIncorrectType);
675
throw new
FileFormatException
(SR.XpsValidatingLoaderMoreThanOneThumbnailInPackage);
687
throw new
FileFormatException
(SR.XpsValidatingLoaderThumbnailHasIncorrectType);
726
throw new
FileFormatException
(SR.XpsValidatingLoaderUnsupportedMimeType);
System\Windows\Documents\XPSS0ValidatingLoader.cs (5)
82
throw new
FileFormatException
(SR.XpsValidatingLoaderUriNotInSamePackage);
138
throw new
FileFormatException
(SR.XpsValidatingLoaderUnsupportedMimeType);
180
throw new
FileFormatException
(SR.XpsValidatingLoaderDuplicateReference);
208
throw new
FileFormatException
(SR.XpsValidatingLoaderUnlistedResource);
213
throw new
FileFormatException
(SR.XpsValidatingLoaderUnsupportedMimeType);
PresentationUI (2)
MS\Internal\Documents\RightsManagementManager.cs (1)
1420
new
FileFormatException
());
MS\Internal\Documents\RightsManagementProvider.cs (1)
1278
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)
428
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)
370
throw new
FileFormatException
(SR.ZipZeroSizeFileIsNotValidArchive);
406
throw new
FileFormatException
(SR.FileContainsCorruptedData);
17 references to FileFormatException
PresentationCore (11)
MS\Internal\Shaping\OpenTypeLayout.cs (7)
317
catch (
FileFormatException
)
334
catch (
FileFormatException
)
370
catch (
FileFormatException
)
388
catch (
FileFormatException
)
916
catch (
FileFormatException
)
993
catch (
FileFormatException
)
1122
catch (
FileFormatException
)
MS\Internal\Shaping\OpenTypeLayoutCache.cs (1)
344
catch (
FileFormatException
)
System\Windows\Media\FontFamily.cs (1)
526
catch (
FileFormatException
)
System\Windows\Media\Imaging\BitmapImage.cs (1)
553
catch (
FileFormatException
)
System\Windows\Media\Imaging\BitmapSource.cs (1)
1157
catch (
FileFormatException
)
PresentationFramework (3)
MS\Internal\IO\Packaging\XpsFilter.cs (1)
426
catch (
FileFormatException
ex)
System\Windows\ColorConvertedBitmapExtension.cs (1)
123
catch (
FileFormatException
)
System\Windows\Documents\WpfPayload.cs (1)
340
catch (System.IO.
FileFormatException
)
PresentationUI (1)
MS\Internal\Documents\Application\RightsManagementErrorHandler.cs (1)
259
(exception is System.IO.
FileFormatException
))
System.IO.Packaging (1)
System\IO\Packaging\Package.cs (1)
383
/// <exception cref="
FileFormatException
">The package has a bad format.</exception>
WindowsBase (1)
WindowsBase.cs (1)
10
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.
FileFormatException
))]