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