175 references to SR
System.IO.Packaging (175)
System\IO\Packaging\ContentType.cs (12)
84throw new ArgumentException(SR.ContentTypeCannotHaveLeadingTrailingLWS); 270throw new ArgumentException(SR.InvalidLinearWhiteSpaceCharacter); 290throw new ArgumentException(SR.InvalidTypeSubType); 310throw new ArgumentException(SR.ExpectingSemicolon); 316throw new ArgumentException(SR.ExpectingParameterValuePairs); 328throw new ArgumentException(SR.InvalidParameterValuePair); 387throw new ArgumentException(SR.InvalidParameterValue); 413throw new ArgumentException(SR.InvalidToken_ContentType); 419throw new ArgumentException(SR.InvalidToken_ContentType); 436throw new ArgumentException(SR.InvalidParameterValue); 466throw new ArgumentException(SR.InvalidParameterValue); 469throw new ArgumentException(SR.InvalidParameterValue);
System\IO\Packaging\FileFormatException.cs (11)
24: base(SR.FileFormatException) 33: base(message ?? SR.FileFormatException) 44: base(message ?? SR.FileFormatException, innerException) 58? SR.FileFormatException 59: SR.Format(SR.FileFormatExceptionWithFileName, sourceUri)) 74: base(message ?? SR.FileFormatException) 92? SR.FileFormatException 93: SR.Format(SR.FileFormatExceptionWithFileName, sourceUri), 111: base(message ?? SR.FileFormatException, innerException)
System\IO\Packaging\IgnoreFlushAndCloseStream.cs (1)
177throw new ObjectDisposedException(null, SR.StreamObjectDisposed);
System\IO\Packaging\InterleavedZipPackagePartStream.cs (7)
88throw new NotSupportedException(SR.ReadNotSupported); 193throw new NotSupportedException(SR.SeekNotSupported); 217throw new ArgumentException(SR.SeekNegative); 244throw new NotSupportedException(SR.StreamDoesNotSupportWrite); 248throw new NotSupportedException(SR.SeekNotSupported); 302throw new NotSupportedException(SR.WriteNotSupported); 514throw new ObjectDisposedException(null, SR.StreamObjectDisposed);
System\IO\Packaging\InterleavedZipPackagePartStream.PieceDirectory.cs (1)
334throw new ArgumentException(SR.PieceDoesNotExist);
System\IO\Packaging\InternalRelationshipCollection.cs (24)
146throw new ArgumentException(SR.InvalidRelationshipType); 161throw new XmlException(SR.Format(SR.NotAValidXmlIdString, id), exception); 255throw new XmlException(SR.RelationshipsTagHasExtraAttributes, null, reader.LineNumber, reader.LinePosition); 294throw new XmlException(SR.RelationshipTagDoesntMatchSchema, null, reader.LineNumber, reader.LinePosition); 299throw new XmlException(SR.UnknownTagEncountered, null, reader.LineNumber, reader.LinePosition); 302else throw new XmlException(SR.ExpectedRelationshipsElementTag, null, reader.LineNumber, reader.LinePosition); 340throw new XmlException(SR.Format(SR.RequiredRelationshipAttributeMissing, TargetAttributeName), null, reader.LineNumber, reader.LinePosition); 347throw new XmlException(SR.Format(SR.RequiredRelationshipAttributeMissing, TypeAttributeName), null, reader.LineNumber, reader.LinePosition); 353throw new XmlException(SR.Format(SR.RequiredRelationshipAttributeMissing, IdAttributeName), null, reader.LineNumber, reader.LinePosition); 372throw new XmlException(SR.Format(SR.ElementIsNotEmptyElement, RelationshipTagName), null, reader.LineNumber, reader.LinePosition); 399throw new ArgumentException(SR.RelationshipTargetMustBeRelative, nameof(targetUri)); 417throw new ArgumentException(SR.RelationshipToRelationshipIllegal, nameof(targetUri)); 561throw new FileFormatException(SR.RelationshipPartIncorrectContentType); 570throw new XmlException(SR.Format(SR.InvalidXmlBaseAttributePresent, XmlBaseAttributeName), null, reader.LineNumber, reader.LinePosition); 576throw new XmlException(SR.Format(SR.InvalidValueForTheAttribute, attributeName), ex, reader.LineNumber, reader.LinePosition); 606throw new XmlException(SR.Format(SR.NotAUniqueRelationshipId, id));
System\IO\Packaging\Package.cs (13)
228throw new InvalidOperationException(SR.PartAlreadyExists); 263throw new InvalidOperationException(SR.PartDoesNotExist); 428throw new FileFormatException(SR.BadPackageFormat); 451throw new InvalidOperationException(SR.PartNamePrefixExists); 692throw new InvalidOperationException(SR.PackageRelationshipDoesNotExist); 807throw new IOException(SR.CannotModifyReadOnlyContainer); 814throw new IOException(SR.CannotRetrievePartsOfWriteOnlyContainer); 863throw new ArgumentException(SR.UnsupportedCombinationOfModeAccess); 865throw new ArgumentException(SR.UnsupportedCombinationOfModeAccess); 867throw new ArgumentException(SR.UnsupportedCombinationOfModeAccess); 869throw new NotSupportedException(SR.UnsupportedCombinationOfModeAccess); 1009throw new InvalidOperationException(SR.PartNamePrefixExists); 1017throw new ObjectDisposedException(null, SR.ObjectDisposed);
System\IO\Packaging\PackagePart.cs (11)
183throw new InvalidOperationException(SR.NullContentTypeProvided); 246throw new NotSupportedException(SR.GetContentTypeCoreNotImplemented); 317throw new ArgumentException(SR.CreateNewNotSupported); 319throw new ArgumentException(SR.TruncateNotSupported); 324throw new IOException(SR.NullStreamReturned); 497throw new InvalidOperationException(SR.PackagePartRelationshipDoesNotExist); 696throw new IOException(SR.UnsupportedCombinationOfModeAccess); 701throw new IOException(SR.ContainerAndPartModeIncompatible); 715throw new InvalidOperationException(SR.ParentContainerClosed); 722throw new InvalidOperationException(SR.PackagePartDeleted); 729throw new InvalidOperationException(SR.RelationshipPartsCannotHaveRelationships);
System\IO\Packaging\PackageRelationship.cs (2)
132throw new XmlException(SR.Format(SR.NotAValidXmlIdString, id), exception);
System\IO\Packaging\PackagingUtilities.cs (1)
53throw new FileFormatException(SR.EncodingNotSupported);
System\IO\Packaging\PackUriHelper.cs (12)
53throw new ArgumentException(SR.PartUriIsEmpty); 202throw new ArgumentException(SR.RelationshipPartUriNotExpected); 251throw new ArgumentException(SR.RelationshipPartUriExpected); 386return new ArgumentException(SR.PartUriIsEmpty); 389return new ArgumentException(SR.PartUriShouldStartWithForwardSlash); 421return new ArgumentException(SR.InvalidPartUri); 428return new ArgumentException(SR.UnexpectedPartPieceUri); 446return new ArgumentException(SR.URIShouldNotBeAbsolute); 461return new ArgumentException(SR.PartUriCannotHaveAFragment); 478return new ArgumentException(SR.PartUriShouldNotEndWithForwardSlash); 501return new ArgumentException(SR.PartUriShouldNotStartWithTwoForwardSlashes); 806throw new ArgumentException(SR.NotAValidRelationshipPartUri);
System\IO\Packaging\PackUriHelper.PackUriScheme.cs (6)
81throw new ArgumentException(SR.Format(SR.FragmentMustStartWithHash, nameof(fragment))); 255throw new ArgumentException(SR.UriShouldBeAbsolute, nameof(packageUri)); 267throw new ArgumentException(SR.UriShouldBeAbsolute, nameof(packUri)); 270throw new ArgumentException(SR.UriShouldBePackScheme, nameof(packUri)); 312throw new ArgumentException(SR.InnerPackageUriHasFragment);
System\IO\Packaging\PartBasedPackageProperties.cs (26)
389throw new XmlException(SR.Format(SR.DuplicateCorePropertyName, reader!.Name), 441throw new FileFormatException(SR.NoExternalTargetForMetadataRelationship); 449throw new FileFormatException(SR.DanglingMetadataRelationship); 454throw new FileFormatException(SR.WrongContentTypeForPropertyPart); 469throw new FileFormatException(SR.MoreThanOneMetadataRelationships); 498throw new XmlException(SR.CorePropertiesElementExpected, 505throw new XmlException(SR.Format(SR.PropertyWrongNumbOfAttribsDefinedOn, reader.Name), 524throw new XmlException(SR.PropertyStartTagExpected, 531throw new XmlException(SR.NoStructuredContentInsideProperties, 545SR.Format(SR.InvalidPropertyNameInCorePropertiesPart, reader.LocalName), 553throw new XmlException(SR.UnknownNamespaceInCorePropertiesPart, 562throw new XmlException(SR.Format(SR.PropertyWrongNumbOfAttribsDefinedOn, reader.Name), 577throw new XmlException(SR.Format(SR.PropertyWrongNumbOfAttribsDefinedOn, reader.Name), 611throw new XmlException(SR.Format(SR.UnknownDCDateTimeXsiType, reader.Name), 620throw new XmlException(SR.Format(SR.UnknownDCDateTimeXsiType, reader.Name), 630throw new XmlException(SR.Format(SR.UnknownDCDateTimeXsiType, reader.Name), 648throw new XmlException(SR.NoStructuredContentInsideProperties, 670throw new XmlException(SR.XsdDateTimeExpected,
System\IO\Packaging\XmlCompatibilityReader.cs (32)
214Error(SR.XCRUnknownCompatElement, elementName); 252Error(SR.XCRInvalidACChild, Reader.Name); 302Error(SR.XCRChoiceNotFound); 776Error(SR.XCRCompatCycle, mappedNamespace); 903Error(SR.XCRInvalidFormat, callerContext); 913Error(SR.XCRUndefinedPrefix, prefix); 918Error(SR.XCRInvalidXMLName, pair); 949Error(SR.XCRUndefinedPrefix, prefix); 1018Error(SR.XCRUnknownCompatAttrib, attributeName); 1101Error(SR.Format(SR.XCRInvalidACChild, Reader.Name)); 1106Error(SR.XCRChoiceNotFound); 1136Error(SR.XCRChoiceOnlyInAC); 1141Error(SR.XCRChoiceAfterFallback); 1149Error(SR.XCRRequiresAttribNotFound); 1154Error(SR.XCRInvalidRequiresAttribute); 1174Error(SR.XCRInvalidAttribInElement, attributeName, Choice); 1206Error(SR.XCRInvalidRequiresAttribute); 1249Error(SR.XCRFallbackOnlyInAC); 1254Error(SR.XCRChoiceNotFound); 1259Error(SR.XCRMultipleFallbackFound); 1277Error(SR.XCRInvalidAttribInElement, attributeName, Fallback); 1348Error(SR.XCRMustUnderstandFailed, namespaceUri); 1696_reader.Error(SR.XCRNSProcessContentNotIgnorable, key); 1707_reader.Error(SR.XCRNSPreserveNotIgnorable, key); 1718_reader.Error(SR.XCRNSPreserveNotIgnorable, key); 1749_reader.Error(SR.XCRDuplicateWildcardProcessContent, _namespaceName); 1753_reader.Error(SR.XCRDuplicateProcessContent, _namespaceName, elementName); 1761_reader.Error(SR.XCRInvalidProcessContent, _namespaceName); 1800_reader.Error(SR.XCRDuplicateWildcardPreserve, _namespaceName); 1804_reader.Error(SR.XCRDuplicatePreserve, itemName, _namespaceName); 1812_reader.Error(SR.XCRInvalidPreserve, _namespaceName);
System\IO\Packaging\ZipPackage.cs (16)
200throw new FormatException(SR.DuplicatePiecesFound); 370throw new FileFormatException(SR.ZipZeroSizeFileIsNotValidArchive); 377throw new IOException(SR.CreateNewOnNonEmptyStream); 406throw new FileFormatException(SR.FileContainsCorruptedData); 991throw new XmlException(SR.TypesTagHasExtraAttributes, null, ((IXmlLineInfo)reader).LineNumber, ((IXmlLineInfo)reader).LinePosition); 1028throw new XmlException(SR.TypesXmlDoesNotMatchSchema, null, ((IXmlLineInfo)reader).LineNumber, ((IXmlLineInfo)reader).LinePosition); 1034throw new XmlException(SR.TypesElementExpected, null, ((IXmlLineInfo)reader).LineNumber, ((IXmlLineInfo)reader).LinePosition); 1143throw new FormatException(SR.BadPackageFormat); 1168throw new XmlException(SR.DefaultTagDoesNotMatchSchema, null, ((IXmlLineInfo)reader).LineNumber, ((IXmlLineInfo)reader).LinePosition); 1195throw new XmlException(SR.OverrideTagDoesNotMatchSchema, null, ((IXmlLineInfo)reader).LineNumber, ((IXmlLineInfo)reader).LinePosition); 1231throw new XmlException(SR.Format(SR.ElementIsNotEmptyElement, elementName), null, ((IXmlLineInfo)reader).LineNumber, ((IXmlLineInfo)reader).LinePosition); 1283throw new XmlException(SR.Format(SR.RequiredAttributeEmpty, tagName, attributeName), null, ((IXmlLineInfo)reader).LineNumber, ((IXmlLineInfo)reader).LinePosition); 1292throw new XmlException(SR.Format(SR.RequiredAttributeMissing, tagName, attributeName), null, ((IXmlLineInfo)reader).LineNumber, ((IXmlLineInfo)reader).LinePosition);