40 references to FileFormatException
PresentationCore (8)
MS\Internal\FontCache\FontSource.cs (2)
191
throw new
FileFormatException
(SR.Resource_XpsPackageBoundaryViolation);
273
throw new
FileFormatException
(SR.Resource_XpsPackageBoundaryViolation);
MS\Internal\XpsLoadingContext.cs (1)
160
throw new
FileFormatException
(SR.Resource_XpsPackageBoundaryViolation);
System\Windows\Media\ColorContext.cs (1)
499
throw new
FileFormatException
(SR.Resource_XpsPackageBoundaryViolation);
System\Windows\Media\Effects\PixelShader.cs (1)
97
throw new
FileFormatException
(SR.Resource_XpsPackageBoundaryViolation);
System\Windows\Media\Imaging\BitmapDecoder.cs (1)
252
throw new
FileFormatException
(SR.Resource_XpsPackageBoundaryViolation);
System\Windows\Media\Imaging\BitmapDownload.cs (1)
86
throw new
FileFormatException
(SR.Resource_XpsPackageBoundaryViolation);
System\Windows\Media\Imaging\BitmapImage.cs (1)
297
throw new
FileFormatException
(SR.Resource_XpsPackageBoundaryViolation);
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)
45
throw new
FileFormatException
(SR.XpsValidatingLoaderUnsupportedEncoding);
52
throw new
FileFormatException
(SR.XpsValidatingLoaderUnsupportedEncoding);
214
throw new
FileFormatException
(SR.XpsValidatingLoaderUnsupportedRootNamespaceUri);
324
throw new
FileFormatException
(SR.XpsValidatingLoaderUnsupportedMimeType);
550
throw new
FileFormatException
(SR.XpsValidatingLoaderMoreThanOnePrintTicketPart);
561
throw new
FileFormatException
(SR.XpsValidatingLoaderPrintTicketHasIncorrectType);
572
throw new
FileFormatException
(SR.XpsValidatingLoaderMoreThanOneThumbnailPart);
584
throw new
FileFormatException
(SR.XpsValidatingLoaderThumbnailHasIncorrectType);
604
throw new
FileFormatException
(SR.XpsValidatingLoaderRestrictedFontHasIncorrectType);
620
throw new
FileFormatException
(SR.XpsValidatingLoaderMoreThanOneDiscardControlInPackage);
631
throw new
FileFormatException
(SR.XpsValidatingLoaderDiscardControlHasIncorrectType);
643
throw new
FileFormatException
(SR.XpsValidatingLoaderMoreThanOneThumbnailInPackage);
655
throw new
FileFormatException
(SR.XpsValidatingLoaderThumbnailHasIncorrectType);
694
throw new
FileFormatException
(SR.XpsValidatingLoaderUnsupportedMimeType);
System\Windows\Documents\XPSS0ValidatingLoader.cs (5)
99
throw new
FileFormatException
(SR.XpsValidatingLoaderUriNotInSamePackage);
167
throw new
FileFormatException
(SR.XpsValidatingLoaderUnsupportedMimeType);
214
throw new
FileFormatException
(SR.XpsValidatingLoaderDuplicateReference);
242
throw new
FileFormatException
(SR.XpsValidatingLoaderUnlistedResource);
247
throw new
FileFormatException
(SR.XpsValidatingLoaderUnsupportedMimeType);
PresentationUI (1)
MS\Internal\Documents\RightsManagementProvider.cs (1)
1278
throw new
FileFormatException
(
System.IO.Packaging (9)
System\IO\Packaging\InternalRelationshipCollection.cs (1)
561
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);