32 references to FileFormatException
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);
215
throw new
FileFormatException
(SR.XpsValidatingLoaderUnsupportedRootNamespaceUri);
325
throw new
FileFormatException
(SR.XpsValidatingLoaderUnsupportedMimeType);
585
throw new
FileFormatException
(SR.XpsValidatingLoaderMoreThanOnePrintTicketPart);
596
throw new
FileFormatException
(SR.XpsValidatingLoaderPrintTicketHasIncorrectType);
607
throw new
FileFormatException
(SR.XpsValidatingLoaderMoreThanOneThumbnailPart);
619
throw new
FileFormatException
(SR.XpsValidatingLoaderThumbnailHasIncorrectType);
639
throw new
FileFormatException
(SR.XpsValidatingLoaderRestrictedFontHasIncorrectType);
655
throw new
FileFormatException
(SR.XpsValidatingLoaderMoreThanOneDiscardControlInPackage);
666
throw new
FileFormatException
(SR.XpsValidatingLoaderDiscardControlHasIncorrectType);
678
throw new
FileFormatException
(SR.XpsValidatingLoaderMoreThanOneThumbnailInPackage);
690
throw new
FileFormatException
(SR.XpsValidatingLoaderThumbnailHasIncorrectType);
729
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 (1)
MS\Internal\Documents\RightsManagementProvider.cs (1)
1279
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);