193 references to PackUriHelper
PresentationCore (26)
MS\Internal\FontCache\FontCacheUtil.cs (1)
557else if (fontLocation.Scheme == PackUriHelper.UriSchemePack)
MS\Internal\FontCache\FontResourceCache.cs (1)
60Debug.Assert(uri.IsAbsoluteUri && uri.Scheme == PackUriHelper.UriSchemePack && BaseUriHelper.IsPackApplicationUri(uri));
MS\Internal\IO\Packaging\DeobfuscatingStream.cs (1)
201Uri partUri = System.IO.Packaging.PackUriHelper.GetPartUri(streamUri);
MS\Internal\WpfWebRequestHelper.cs (1)
57if (string.Equals(uri.Scheme, PackUriHelper.UriSchemePack, StringComparison.Ordinal))
System\IO\Packaging\PackageStore.cs (3)
91Uri packUri = PackUriHelper.Create(uri); 93if (PackUriHelper.ComparePackUri(packUri, BaseUriHelper.PackAppBaseUri) == 0 || 94PackUriHelper.ComparePackUri(packUri, BaseUriHelper.SiteOfOriginBaseUri) == 0)
System\IO\Packaging\PackWebRequest.cs (2)
579static private Uri _siteOfOriginUri = PackUriHelper.GetPackageUri(System.Windows.Navigation.BaseUriHelper.SiteOfOriginBaseUri); 580static private Uri _appBaseUri = PackUriHelper.GetPackageUri(System.Windows.Navigation.BaseUriHelper.PackAppBaseUri);
System\IO\Packaging\PackWebRequestFactory.cs (5)
60if (!string.Equals(uri.Scheme, PackUriHelper.UriSchemePack, StringComparison.Ordinal)) 61throw new ArgumentException(SR.Format(SR.UriSchemeMismatch, PackUriHelper.UriSchemePack), "uri"); 72Uri packageUri = System.IO.Packaging.PackUriHelper.GetPackageUri(uri); 73Uri partUri = System.IO.Packaging.PackUriHelper.GetPartUri(uri); 138if (string.Equals(uri.Scheme, PackUriHelper.UriSchemePack, StringComparison.Ordinal))
System\IO\Packaging\PackWebResponse.cs (1)
341return PackUriHelper.Create(_fullResponse.ResponseUri, _partName);
System\Windows\Media\Imaging\BitmapDecoder.cs (1)
1025if (string.Equals(uri.Scheme, PackUriHelper.UriSchemePack, StringComparison.OrdinalIgnoreCase))
System\Windows\Media\mediaclock.cs (1)
196&& baseUri.Scheme != System.IO.Packaging.PackUriHelper.UriSchemePack
System\Windows\Media\MediaPlayerState.cs (1)
818if (source != null && source.IsAbsoluteUri && source.Scheme == PackUriHelper.UriSchemePack)
System\Windows\Navigation\BaseUriHelper.cs (8)
20using PackUriHelper = System.IO.Packaging.PackUriHelper; 34private static readonly Uri _siteOfOriginBaseUri = PackUriHelper.Create(new Uri(SOOBASE)); 36private static readonly Uri _packAppBaseUri = PackUriHelper.Create(new Uri(APPBASE)); 52PreloadedPackages.AddPackage(PackUriHelper.GetPackageUri(SiteOfOriginBaseUri), new SiteOfOriginContainer(), true); 149string.Equals(uri.Scheme, PackUriHelper.UriSchemePack, StringComparison.OrdinalIgnoreCase) && 152string.Equals(PackUriHelper.GetPackageUri(uri).GetComponents(UriComponents.AbsoluteUri, UriFormat.UriEscaped), 171Debug.Assert(uri is not null && uri.IsAbsoluteUri && string.Equals(uri.Scheme, PackUriHelper.UriSchemePack, StringComparison.OrdinalIgnoreCase) && IsPackApplicationUri(uri)); 357Uri packageUri = PackUriHelper.GetPackageUri(sUri);
PresentationFramework (38)
MS\Internal\AppModel\AppModelKnownContentFactory.cs (1)
48Uri partUri = PackUriHelper.GetPartUri(baseUri);
System\Windows\Application.cs (7)
50using PackUriHelper = System.IO.Packaging.PackUriHelper; 676Uri packageUri = PackUriHelper.GetPackageUri(resolvedUri); 677Uri partUri = PackUriHelper.GetPartUri(resolvedUri); 2051PreloadedPackages.AddPackage(PackUriHelper.GetPackageUri(BaseUriHelper.PackAppBaseUri), new ResourceContainer(), true); 2084Uri packageUri = PackUriHelper.GetPackageUri(resolvedUri); 2085Uri partUri = PackUriHelper.GetPartUri(resolvedUri); 2111Uri packUri = PackUriHelper.Create(packageUri);
System\Windows\Controls\AVElementHelper.cs (1)
127if (value.Scheme != System.IO.Packaging.PackUriHelper.UriSchemePack)
System\Windows\Documents\FixedDocument.cs (7)
22using PackUriHelper = System.IO.Packaging.PackUriHelper; 868if (baseUri.Scheme.Equals(PackUriHelper.UriSchemePack, StringComparison.OrdinalIgnoreCase)) 896if (baseUri.Scheme.Equals(PackUriHelper.UriSchemePack, StringComparison.OrdinalIgnoreCase)) 968Uri partUri = PackUriHelper.GetPartUri(contentUri); 971Uri packageUri = PackUriHelper.GetPackageUri(contentUri); 987targetUri = PackUriHelper.ResolvePartUri(partUri, relationShip.TargetUri); 992absTargetUri = PackUriHelper.Create(packageUri, targetUri);
System\Windows\Documents\FixedSchema.cs (12)
165Uri targetUri = PackUriHelper.ResolvePartUri(_baseUri, new Uri(uriAttr, UriKind.Relative)); 166Uri absTargetUri = PackUriHelper.Create(_packageUri, targetUri); 586Uri targetUri = PackUriHelper.ResolvePartUri(partUri, rel.TargetUri); 587Uri absTargetUri = PackUriHelper.Create(packageUri, targetUri); 608Uri targetUri = PackUriHelper.ResolvePartUri(partUri, rel.TargetUri); 609Uri absTargetUri = PackUriHelper.Create(packageUri, targetUri); 628Uri targetUri = PackUriHelper.ResolvePartUri(partUri, rel.TargetUri); 629Uri absTargetUri = PackUriHelper.Create(packageUri, targetUri); 656Uri targetUri = PackUriHelper.ResolvePartUri(partUri, rel.TargetUri); 657Uri absTargetUri = PackUriHelper.Create(packageUri, targetUri); 679Uri targetUri = PackUriHelper.ResolvePartUri(partUri, rel.TargetUri); 680Uri absTargetUri = PackUriHelper.Create(packageUri, targetUri);
System\Windows\Documents\WpfPayload.cs (2)
318Uri entryPartUri = System.IO.Packaging.PackUriHelper.Create(payloadUri, xamlEntryPart.Uri); // gives an absolute uri of the entry part 319Uri packageUri = System.IO.Packaging.PackUriHelper.GetPackageUri(entryPartUri); // extracts package uri from combined package+part uri
System\Windows\Documents\XPSS0ValidatingLoader.cs (7)
21using PackUriHelper = System.IO.Packaging.PackUriHelper; 70Uri packageUri = PackUriHelper.GetPackageUri(uri); 71Uri partUri = PackUriHelper.GetPartUri(uri); 79parentPackageUri = PackUriHelper.GetPackageUri(parentUri); 107Uri targetUri = PackUriHelper.ResolvePartUri(partUri, relationShip.TargetUri); 108Uri absTargetUri = PackUriHelper.Create(packageUri, targetUri); 198if (PackUriHelper.ComparePackUri(resUri,uri) == 0)
System\Windows\Navigation\JournalEntry.cs (1)
334if (string.Equals(uri.Scheme, PackUriHelper.UriSchemePack, StringComparison.OrdinalIgnoreCase))
PresentationUI (4)
MS\Internal\Documents\Application\TransactionalPackage.cs (4)
157Uri normalizedPartUri = PackUriHelper.GetNormalizedPartUri(part.Uri); 221Uri normalizedPartUri = PackUriHelper.GetNormalizedPartUri(partUri); 273Uri normalizedPartUri = PackUriHelper.GetNormalizedPartUri(partUri); 354Uri normalizedPartUri = PackUriHelper.GetNormalizedPartUri(partUri);
ReachFramework (22)
Packaging\XpsDocument.cs (2)
30using PackUriHelper = System.IO.Packaging.PackUriHelper; 610parserContext.BaseUri = PackUriHelper.Create(Uri, CurrentXpsManager.StartingPart.Uri);
Packaging\XpsFixedDocumentReaderWriter.cs (3)
27using PackUriHelper = System.IO.Packaging.PackUriHelper; 960AddPageToCache(PackUriHelper.ResolvePartUri(Uri, relativeUri)); 1052Uri documentStructureUri = PackUriHelper.ResolvePartUri(documentStructureRelationship.SourceUri,
Packaging\XpsFixedDocumentSequenceReaderWriter.cs (2)
25using PackUriHelper = System.IO.Packaging.PackUriHelper; 560AddDocumentToCache(PackUriHelper.ResolvePartUri(Uri, relativeUri));
Packaging\XpsFixedPageReaderWriter.cs (3)
29using PackUriHelper = System.IO.Packaging.PackUriHelper; 1524Uri absUri = PackUriHelper.ResolvePartUri(parentPart.Uri, rel.TargetUri); 1529Uri absUri = PackUriHelper.ResolvePartUri(Uri, rel.TargetUri);
Packaging\XpsManager.cs (10)
25using PackUriHelper = System.IO.Packaging.PackUriHelper; 399System.Uri partUri = PackUriHelper.CreatePartUri(new Uri(uniqueUri, UriKind.Relative)); 599sigDefPart = _metroPackage.GetPart(PackUriHelper.ResolvePartUri(SigDefRel.SourceUri, SigDefRel.TargetUri)); 618PackUriHelper.ResolvePartUri(propertiesPartRelationship.SourceUri, 658thumbNailPart = _metroPackage.GetPart(PackUriHelper.ResolvePartUri(thumbNailRel.SourceUri, thumbNailRel.TargetUri)); 691Uri printTicketUri = PackUriHelper.ResolvePartUri(documentUri, printTicketRel.TargetUri); 1025return PackUriHelper.CreatePartUri(new Uri(uniqueUri, UriKind.Relative)); 1062return PackUriHelper.CreatePartUri(new Uri(uniqueUri, UriKind.Relative)); 1158return PackUriHelper.CreatePartUri(new Uri(uniqueUri, UriKind.Relative)); 1424Uri startPartUri = PackUriHelper.ResolvePartUri(startingPartRelationship.SourceUri,
Serialization\Manager\ReachSerializationUtils.cs (1)
983Uri relativeUri = PackUriHelper.GetRelativeUri(pageUri, documentUri);
Serialization\Manager\XpsOMPackagingPolicy.cs (1)
808Uri uri = PackUriHelper.CreatePartUri(new Uri(uniqueUri, UriKind.Relative));
System.IO.Packaging (102)
System\IO\Packaging\ContentType.cs (1)
222stringBuilder.Append(PackUriHelper.ForwardSlashChar);
System\IO\Packaging\InternalRelationshipCollection.cs (7)
208sourceUri = PackUriHelper.PackageRootUri; 212return PackUriHelper.GetRelationshipPartUri(sourceUri); 418|| (targetUri.IsAbsoluteUri && targetUri.Scheme == PackUriHelper.UriSchemePack)) 426if (PackUriHelper.IsRelationshipPartUri(resolvedUri)) 562return PackUriHelper.ResolvePartUri(PackUriHelper.PackageRootUri, target); 564return PackUriHelper.ResolvePartUri(_sourcePart.Uri, target);
System\IO\Packaging\Package.cs (37)
36_partList = new SortedList<PackUriHelper.ValidatedPartUri, PackagePart>(); // initial default is zero 225PackUriHelper.ValidatedPartUri validatedPartUri = PackUriHelper.ValidatePartUri(partUri); 289PackUriHelper.ValidatedPartUri validatePartUri = PackUriHelper.ValidatePartUri(partUri); 315PackUriHelper.ValidatedPartUri validatedPartUri = (PackUriHelper.ValidatedPartUri)PackUriHelper.ValidatePartUri(partUri); 322validatedPartUri = (PackUriHelper.ValidatedPartUri)value.Uri; 346if (PackUriHelper.IsRelationshipPartUri(validatedPartUri)) 353Uri owningPartUri = PackUriHelper.GetSourcePartUriFromRelationshipPartUri(validatedPartUri); 355if (Uri.Compare(owningPartUri, PackUriHelper.PackageRootUri, UriComponents.SerializationInfoString, UriFormat.UriEscaped, StringComparison.Ordinal) == 0) 373DeletePart(PackUriHelper.GetRelationshipPartUri(validatedPartUri)); 404PackUriHelper.ValidatedPartUri partUri; 406var uriComparer = Comparer<PackUriHelper.ValidatedPartUri>.Default; 409Array.Sort(parts, Comparer<PackagePart>.Create((partA, partB) => uriComparer.Compare((PackUriHelper.ValidatedPartUri)partA.Uri, (PackUriHelper.ValidatedPartUri)partB.Uri))); 417Dictionary<string, KeyValuePair<PackUriHelper.ValidatedPartUri, PackagePart>> partDictionary = new(parts.Length); 422partUri = (PackUriHelper.ValidatedPartUri)parts[i].Uri; 441partDictionary.Add(normalizedPartName, new KeyValuePair<PackUriHelper.ValidatedPartUri, PackagePart>(partUri, parts[i])); 446&& normalizedPartName[precedingPartName.Length] == PackUriHelper.ForwardSlashChar) 979private void AddIfNoPrefixCollisionDetected(PackUriHelper.ValidatedPartUri partUri, PackagePart? part) 1006&& normalizedPartName[precedingPartName.Length] == PackUriHelper.ForwardSlashChar) || 1010&& followingPartName[normalizedPartName.Length] == PackUriHelper.ForwardSlashChar)) 1064PackUriHelper.ValidatedPartUri[] partKeys = new PackUriHelper.ValidatedPartUri[_partList.Keys.Count]; 1066foreach (PackUriHelper.ValidatedPartUri uri in _partList.Keys) 1099if (PackUriHelper.IsRelationshipPartUri(p.Uri) && PackUriHelper.ComparePartUri(p.Uri, PackageRelationship.ContainerRelationshipPartName) != 0) 1105PackUriHelper.ValidatedPartUri owningPartUri = 1106(PackUriHelper.ValidatedPartUri)PackUriHelper.GetSourcePartUriFromRelationshipPartUri(p.Uri); 1148PackUriHelper.ValidatedPartUri validatePartUri = PackUriHelper.ValidatePartUri(partUri); 1209private void CopyPartDictionaryToPartList(Dictionary<string, KeyValuePair<PackUriHelper.ValidatedPartUri, PackagePart>> partDictionary, List<string> partIndex) 1214_partList = new SortedList<PackUriHelper.ValidatedPartUri, PackagePart>(partDictionary.Count); 1241private SortedList<PackUriHelper.ValidatedPartUri, PackagePart> _partList;
System\IO\Packaging\PackagePart.cs (3)
112_uri = PackUriHelper.ValidatePartUri(partUri); 126_isRelationshipPart = PackUriHelper.IsRelationshipPartUri(partUri); 799private readonly PackUriHelper.ValidatedPartUri _uri;
System\IO\Packaging\PackagePartCollection.cs (2)
52internal PackagePartCollection(SortedList<PackUriHelper.ValidatedPartUri, PackagePart> partList) 62private readonly SortedList<PackUriHelper.ValidatedPartUri, PackagePart> _partList;
System\IO\Packaging\PackageRelationship.cs (2)
33return PackUriHelper.PackageRootUri; 191private static readonly Uri s_containerRelationshipPartName = PackUriHelper.CreatePartUri(new Uri("/_rels/.rels", UriKind.Relative));
System\IO\Packaging\PackageRelationshipSelector.cs (4)
43if (Uri.Compare(sourceUri, PackUriHelper.PackageRootUri, UriComponents.SerializationInfoString, UriFormat.UriEscaped, StringComparison.Ordinal) != 0) 44sourceUri = PackUriHelper.ValidatePartUri(sourceUri); 127if (SourceUri.Equals(PackUriHelper.PackageRootUri)) 144if (SourceUri.Equals(PackUriHelper.PackageRootUri))
System\IO\Packaging\PackUriHelper.cs (2)
280if (PackUriHelper.ComparePartUri(PackageRelationship.ContainerRelationshipPartName, relationshipPartUri) == 0) 796if (PackUriHelper.ComparePartUri(s_containerRelationshipNormalizedPartUri, this) == 0)
System\IO\Packaging\PackUriHelper.PackUriScheme.cs (6)
102absolutePackageUri = string.Concat(PackUriHelper.UriSchemePack, Uri.SchemeDelimiter, absolutePackageUri); 188if (firstPackageUri.Scheme == PackUriHelper.UriSchemePack && secondPackageUri.Scheme == PackUriHelper.UriSchemePack) 200compareResult = System.IO.Packaging.PackUriHelper.ComparePartUri(firstPartUri, secondPartUri); 269if (packUri.Scheme != PackUriHelper.UriSchemePack) 322private static PackUriHelper.ValidatedPartUri? GetPartUriComponent(Uri packUri)
System\IO\Packaging\PartBasedPackageProperties.cs (3)
444Uri propertiesPartUri = PackUriHelper.ResolvePartUri( 445PackUriHelper.PackageRootUri, 734return PackUriHelper.CreatePartUri(new Uri(propertyPartName, UriKind.Relative));
System\IO\Packaging\ZipPackage.cs (27)
41partUri = PackUriHelper.ValidatePartUri(partUri); 55_ignoredItemHelper.Delete((PackUriHelper.ValidatedPartUri)partUri); 60string zipItemName = ((PackUriHelper.ValidatedPartUri)partUri).PartUriString.Substring(1); 65_contentTypeHelper.AddContentType((PackUriHelper.ValidatedPartUri)partUri, new ContentType(contentType), level); 67return new ZipPackagePart(this, zipArchiveEntry.Archive, zipArchiveEntry, _zipStreamManager, (PackUriHelper.ValidatedPartUri)partUri, contentType, compressionOption); 111PackUriHelper.ValidatedPartUri validatedUri = PackUriHelper.ValidatePartUri(partUri); 113string partZipName = GetZipItemNameFromOpcName(PackUriHelper.GetStringForPartUri(validatedUri)); 215if (PackUriHelper.TryValidatePartUri(partUri, out PackUriHelper.ValidatedPartUri? validatedPartUri)) 686PackUriHelper.ValidatedPartUri partUri = pieces[startIndex].PartUri!; 811internal void AddContentType(PackUriHelper.ValidatedPartUri partUri, ContentType contentType, 848internal ContentType? GetContentType(PackUriHelper.ValidatedPartUri partUri) 871internal void DeleteContentType(PackUriHelper.ValidatedPartUri partUri) 927foreach (PackUriHelper.ValidatedPartUri key in _overrideDictionary.Keys) 950_overrideDictionary ??= new Dictionary<PackUriHelper.ValidatedPartUri, ContentType>(OverrideDictionaryInitialSize); 1178PackUriHelper.ValidatedPartUri temporaryUri = PackUriHelper.ValidatePartUri( 1202PackUriHelper.ValidatedPartUri partUri = PackUriHelper.ValidatePartUri(new Uri(partNameAttributeValue!, UriKind.Relative)); 1232private void AddOverrideElement(PackUriHelper.ValidatedPartUri partUri, ContentType contentType) 1257private static void WriteOverrideElement(XmlWriter xmlWriter, PackUriHelper.ValidatedPartUri partUri, ContentType contentType) 1293private Dictionary<PackUriHelper.ValidatedPartUri, ContentType>? _overrideDictionary; 1382internal void AddItemForAtomicPart(PackUriHelper.ValidatedPartUri partUri, string zipFileName) 1434internal void Delete(PackUriHelper.ValidatedPartUri partUri) 1469private void AddItem(PackUriHelper.ValidatedPartUri? partUri, string normalizedPrefixName, string zipFileName) 1482private void UpdateExtensionDictionary(PackUriHelper.ValidatedPartUri partUri, string normalizedPrefixName)
System\IO\Packaging\ZipPackagePart.cs (2)
64PackUriHelper.ValidatedPartUri partUri, 84PackUriHelper.ValidatedPartUri partUri,
System\IO\Packaging\ZipPackagePartPiece.cs (6)
36bool success = TryParseName(zipArchiveEntry.FullName, out PackUriHelper.ValidatedPartUri? partUri, out string? prefixName, out int pieceNumber, out bool isLastPiece); 54internal static bool TryParseName(string path, [NotNullWhen(true)] out PackUriHelper.ValidatedPartUri? partUri, [NotNullWhen(true)] out string? prefixName, out int pieceNumber, out bool isLastPiece) 137&& PackUriHelper.TryValidatePartUri(unvalidatedPartUri, out partUri); 148internal static ZipPackagePartPiece Create(ZipArchive zipArchive, PackUriHelper.ValidatedPartUri? partUri, string prefixName, int pieceNumber, bool isLastPiece) 156internal ZipPackagePartPiece(ZipArchiveEntry zipArchiveEntry, PackUriHelper.ValidatedPartUri? partUri, string prefixName, int pieceNumber, bool isLastPiece) 188internal PackUriHelper.ValidatedPartUri? PartUri { get; }
WindowsBase (1)
WindowsBase.cs (1)
21[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.Packaging.PackUriHelper))]