194 references to PackUriHelper
PresentationCore (26)
Core\CSharp\MS\Internal\FontCache\FontCacheUtil.cs (1)
724
else if (fontLocation.Scheme ==
PackUriHelper
.UriSchemePack)
Core\CSharp\MS\Internal\FontCache\FontResourceCache.cs (1)
64
Debug.Assert(uri.IsAbsoluteUri && uri.Scheme ==
PackUriHelper
.UriSchemePack && BaseUriHelper.IsPackApplicationUri(uri));
Core\CSharp\MS\Internal\IO\Packaging\DeobfuscatingStream.cs (1)
209
Uri partUri =
PackUriHelper
.GetPartUri(streamUri);
Core\CSharp\MS\Internal\WpfWebRequestHelper.cs (1)
70
if (string.Compare(uri.Scheme,
PackUriHelper
.UriSchemePack, StringComparison.Ordinal) == 0)
Core\CSharp\System\IO\Packaging\PackageStore.cs (3)
126
Uri packUri =
PackUriHelper
.Create(uri);
128
if (
PackUriHelper
.ComparePackUri(packUri, BaseUriHelper.PackAppBaseUri) == 0
129
||
PackUriHelper
.ComparePackUri(packUri, BaseUriHelper.SiteOfOriginBaseUri) == 0)
Core\CSharp\System\IO\Packaging\PackWebRequest.cs (2)
618
static private Uri _siteOfOriginUri =
PackUriHelper
.GetPackageUri(System.Windows.Navigation.BaseUriHelper.SiteOfOriginBaseUri);
619
static private Uri _appBaseUri =
PackUriHelper
.GetPackageUri(System.Windows.Navigation.BaseUriHelper.PackAppBaseUri);
Core\CSharp\System\IO\Packaging\PackWebRequestFactory.cs (4)
83
if (String.Compare(uri.Scheme,
PackUriHelper
.UriSchemePack, StringComparison.Ordinal) != 0)
84
throw new ArgumentException(SR.Get(SRID.UriSchemeMismatch,
PackUriHelper
.UriSchemePack), "uri");
97
PackUriHelper
.ValidateAndGetPackUriComponents(uri, out packageUri, out partUri);
164
if (String.Compare(uri.Scheme,
PackUriHelper
.UriSchemePack, StringComparison.Ordinal) == 0)
Core\CSharp\System\IO\Packaging\PackWebResponse.cs (1)
379
return
PackUriHelper
.Create(_fullResponse.ResponseUri, _partName);
Core\CSharp\System\Windows\Media\Effects\PixelShader.cs (1)
110
!
PackUriHelper
.IsPackUri(newUri))
Core\CSharp\System\Windows\Media\Imaging\BitmapDecoder.cs (1)
1185
if (String.Compare(uri.Scheme,
PackUriHelper
.UriSchemePack, StringComparison.OrdinalIgnoreCase) == 0)
Core\CSharp\System\Windows\Media\MediaClock.cs (1)
214
&& baseUri.Scheme != System.IO.Packaging.
PackUriHelper
.UriSchemePack
Core\CSharp\System\Windows\Media\MediaPlayerState.cs (1)
955
if (source != null && source.IsAbsoluteUri && source.Scheme ==
PackUriHelper
.UriSchemePack)
Core\CSharp\System\Windows\Navigation\BaseUriHelper.cs (7)
46
private static readonly Uri _siteOfOriginBaseUri =
PackUriHelper
.Create(new Uri(SOOBASE));
48
private static readonly Uri _packAppBaseUri =
PackUriHelper
.Create(new Uri(APPBASE));
73
PreloadedPackages.AddPackage(
PackUriHelper
.GetPackageUri(SiteOfOriginBaseUri), new SiteOfOriginContainer(), true);
178
SecurityHelper.AreStringTypesEqual(uri.Scheme,
PackUriHelper
.UriSchemePack) &&
182
PackUriHelper
.GetPackageUri(uri).GetComponents(UriComponents.AbsoluteUri, UriFormat.UriEscaped),
201
Debug.Assert(uri != null && uri.IsAbsoluteUri && SecurityHelper.AreStringTypesEqual(uri.Scheme,
PackUriHelper
.UriSchemePack) && IsPackApplicationUri(uri));
394
PackUriHelper
.ValidateAndGetPackUriComponents(sUri, out packageUri, out partUri);
Shared\MS\Internal\SecurityHelper.cs (1)
1276
PackUriHelper
.UriSchemePack, true /* ignore case */,
PresentationFramework (44)
src\Framework\MS\Internal\AppModel\ApplicationProxyInternal.cs (4)
929
PreloadedPackages.GetPackage(
PackUriHelper
.GetPackageUri(
PackUriHelper
.Create(Uri))));
934
PreloadedPackages.RemovePackage(
PackUriHelper
.GetPackageUri(
PackUriHelper
.Create(Uri)));
src\Framework\MS\Internal\AppModel\AppModelKnownContentFactory.cs (1)
55
Uri partUri =
PackUriHelper
.GetPartUri(baseUri);
src\Framework\MS\Internal\IO\Packaging\PackageFilter.cs (1)
609
string path =
PackUriHelper
.GetStringForPartUri(partUri);
src\Framework\System\Windows\Application.cs (4)
795
PackUriHelper
.ValidateAndGetPackUriComponents(resolvedUri, out packageUri, out partUri);
2225
PreloadedPackages.AddPackage(
PackUriHelper
.GetPackageUri(BaseUriHelper.PackAppBaseUri), new ResourceContainer(), true);
2266
PackUriHelper
.ValidateAndGetPackUriComponents(resolvedUri, out packageUri, out partUri);
2295
Uri packUri =
PackUriHelper
.Create(packageUri);
src\Framework\System\Windows\Controls\AVElementHelper.cs (1)
139
if (value.Scheme != System.IO.Packaging.
PackUriHelper
.UriSchemePack)
src\Framework\System\Windows\Controls\CustomDictionarySources.cs (1)
370
if (!(item.IsUnc || item.IsFile || System.IO.Packaging.
PackUriHelper
.IsPackUri(item)))
src\Framework\System\Windows\Controls\WebBrowser.cs (1)
1211
if (
PackUriHelper
.IsPackUri(source))
src\Framework\System\Windows\Documents\FixedDocument.cs (6)
906
if (baseUri.Scheme.Equals(
PackUriHelper
.UriSchemePack, StringComparison.OrdinalIgnoreCase))
934
if (baseUri.Scheme.Equals(
PackUriHelper
.UriSchemePack, StringComparison.OrdinalIgnoreCase))
1012
Uri partUri =
PackUriHelper
.GetPartUri(contentUri);
1015
Uri packageUri =
PackUriHelper
.GetPackageUri(contentUri);
1034
targetUri =
PackUriHelper
.ResolvePartUri(partUri, relationShip.TargetUri);
1039
absTargetUri =
PackUriHelper
.Create(packageUri, targetUri);
src\Framework\System\Windows\Documents\FixedPage.cs (2)
624
(uri.Scheme ==
PackUriHelper
.UriSchemePack && !String.IsNullOrEmpty(uri.Fragment)))
641
(inputUri.Scheme ==
PackUriHelper
.UriSchemePack && !String.IsNullOrEmpty(inputUri.Fragment))))
src\Framework\System\Windows\Documents\FixedSchema.cs (12)
168
Uri targetUri =
PackUriHelper
.ResolvePartUri(_baseUri, new Uri(uriAttr, UriKind.Relative));
169
Uri absTargetUri =
PackUriHelper
.Create(_packageUri, targetUri);
596
Uri targetUri =
PackUriHelper
.ResolvePartUri(partUri, rel.TargetUri);
597
Uri absTargetUri =
PackUriHelper
.Create(packageUri, targetUri);
618
Uri targetUri =
PackUriHelper
.ResolvePartUri(partUri, rel.TargetUri);
619
Uri absTargetUri =
PackUriHelper
.Create(packageUri, targetUri);
638
Uri targetUri =
PackUriHelper
.ResolvePartUri(partUri, rel.TargetUri);
639
Uri absTargetUri =
PackUriHelper
.Create(packageUri, targetUri);
666
Uri targetUri =
PackUriHelper
.ResolvePartUri(partUri, rel.TargetUri);
667
Uri absTargetUri =
PackUriHelper
.Create(packageUri, targetUri);
689
Uri targetUri =
PackUriHelper
.ResolvePartUri(partUri, rel.TargetUri);
690
Uri absTargetUri =
PackUriHelper
.Create(packageUri, targetUri);
src\Framework\System\Windows\Documents\Speller.cs (1)
1741
Invariant.Assert(System.IO.Packaging.
PackUriHelper
.IsPackUri(uri));
src\Framework\System\Windows\Documents\WpfPayload.cs (2)
342
Uri entryPartUri =
PackUriHelper
.Create(payloadUri, xamlEntryPart.Uri); // gives an absolute uri of the entry part
343
Uri packageUri =
PackUriHelper
.GetPackageUri(entryPartUri); // extracts package uri from combined package+part uri
src\Framework\System\Windows\Documents\XPSS0ValidatingLoader.cs (5)
76
PackUriHelper
.ValidateAndGetPackUriComponents(uri, out packageUri, out partUri);
84
parentPackageUri =
PackUriHelper
.GetPackageUri(parentUri);
112
Uri targetUri =
PackUriHelper
.ResolvePartUri(partUri, relationShip.TargetUri);
113
Uri absTargetUri =
PackUriHelper
.Create(packageUri, targetUri);
203
if (
PackUriHelper
.ComparePackUri(resUri,uri) == 0)
src\Framework\System\Windows\Navigation\JournalEntry.cs (1)
371
bool isPack = String.Compare(uri.Scheme,
PackUriHelper
.UriSchemePack, StringComparison.OrdinalIgnoreCase) == 0;
src\Framework\System\Windows\Navigation\NavigationService.cs (2)
591
if (
PackUriHelper
.IsPackUri(source))
596
source.IsAbsoluteUri && !
PackUriHelper
.IsPackUri(source));
WindowsBase (124)
Base\MS\Internal\IO\Packaging\Certificate.cs (1)
151
partName =
PackUriHelper
.ValidatePartUri(partName);
Base\MS\Internal\IO\Packaging\InterleavedZipPartStream.cs (1)
60
: this(
PackUriHelper
.GetStringForPartUri(owningPart.Uri),
Base\MS\Internal\IO\Packaging\InternalRelationshipCollection.cs (9)
270
sourceUri =
PackUriHelper
.PackageRootUri;
274
return
PackUriHelper
.GetRelationshipPartUri(sourceUri);
476
|| (targetUri.IsAbsoluteUri && targetUri.Scheme ==
PackUriHelper
.UriSchemePack))
484
if (
PackUriHelper
.IsRelationshipPartUri(resolvedUri))
632
return
PackUriHelper
.ResolvePartUri(
PackUriHelper
.PackageRootUri, target);
634
return
PackUriHelper
.ResolvePartUri(_sourcePart.Uri, target);
640
if (String.CompareOrdinal(target.Scheme,
PackUriHelper
.UriSchemePack) == 0)
641
return
PackUriHelper
.GetPartUri(target);
Base\MS\Internal\IO\Packaging\PartBasedPackageProperties.cs (3)
529
Uri propertiesPartUri =
PackUriHelper
.ResolvePartUri(
530
PackUriHelper
.PackageRootUri,
822
return
PackUriHelper
.CreatePartUri(new Uri(propertyPartName, UriKind.Relative));
Base\MS\Internal\IO\Packaging\PieceNameHelper.cs (5)
48
internal PieceInfo(ZipFileInfo zipFileInfo,
PackUriHelper
.ValidatedPartUri partUri, string prefixName, int pieceNumber, bool isLastPiece)
115
internal
PackUriHelper
.ValidatedPartUri PartUri
141
private
PackUriHelper
.ValidatedPartUri _partUri;
333
PackUriHelper
.TryValidatePartUri(partUri, out parseResults.PartUri);
427
internal
PackUriHelper
.ValidatedPartUri PartUri;
Base\MS\Internal\IO\Packaging\XmlDigitalSignatureProcessor.cs (1)
252
if (
PackUriHelper
.ComparePartUri(entry.Uri, partName) == 0)
Base\MS\Internal\IO\Packaging\XmlSignatureManifest.cs (6)
420
Uri owningPartUri =
PackUriHelper
.GetSourcePartUriFromRelationshipPartUri(partUri);
554
Uri relationshipPartUri =
PackUriHelper
.GetRelationshipPartUri(relationshipSelector.SourceUri);
616
uri =
PackUriHelper
.ValidatePartUri(new Uri(attrValue.Substring(0, index), UriKind.Relative));
657
if (
PackUriHelper
.ComparePartUri(relationshipPartName, PackageRelationship.ContainerRelationshipPartName) == 0)
660
relationshipPartString =
PackUriHelper
.GetStringForPartUri(relationshipPartName);
760
uriAttr.Value =
PackUriHelper
.GetStringForPartUri(partName) + _contentTypeQueryStringPrefix + part.ContentType;
Base\System\IO\Packaging\Package.cs (29)
74
_partList = new SortedList<
PackUriHelper
.ValidatedPartUri, PackagePart>(); // initial default is zero
321
PackUriHelper
.ValidatedPartUri validatedPartUri =
PackUriHelper
.ValidatePartUri(partUri);
405
PackUriHelper
.ValidatedPartUri validatedPartUri = (
PackUriHelper
.ValidatedPartUri)
PackUriHelper
.ValidatePartUri(partUri);
412
validatedPartUri = (
PackUriHelper
.ValidatedPartUri)_partList[validatedPartUri].Uri;
436
if (
PackUriHelper
.IsRelationshipPartUri(validatedPartUri))
443
Uri owningPartUri =
PackUriHelper
.GetSourcePartUriFromRelationshipPartUri(validatedPartUri);
445
if (Uri.Compare(owningPartUri,
PackUriHelper
.PackageRootUri, UriComponents.SerializationInfoString, UriFormat.UriEscaped, StringComparison.Ordinal)==0)
463
DeletePart(
PackUriHelper
.GetRelationshipPartUri(validatedPartUri));
492
PackUriHelper
.ValidatedPartUri partUri;
500
Dictionary<
PackUriHelper
.ValidatedPartUri, PackagePart> seenPartUris = new Dictionary<
PackUriHelper
.ValidatedPartUri, PackagePart>(parts.Length);
504
partUri = (
PackUriHelper
.ValidatedPartUri)parts[i].Uri;
1155
private void AddIfNoPrefixCollisionDetected(
PackUriHelper
.ValidatedPartUri partUri, PackagePart part)
1183
&& normalizedPartName[precedingPartName.Length] ==
PackUriHelper
.ForwardSlashChar) ||
1187
&& followingPartName[normalizedPartName.Length] ==
PackUriHelper
.ForwardSlashChar))
1298
PackUriHelper
.ValidatedPartUri[] partKeys = new
PackUriHelper
.ValidatedPartUri[_partList.Keys.Count];
1300
foreach (
PackUriHelper
.ValidatedPartUri uri in _partList.Keys)
1334
if (
PackUriHelper
.IsRelationshipPartUri(p.Uri) &&
PackUriHelper
.ComparePartUri(p.Uri, PackageRelationship.ContainerRelationshipPartName) != 0)
1340
PackUriHelper
.ValidatedPartUri owningPartUri =
1341
(
PackUriHelper
.ValidatedPartUri)
PackUriHelper
.GetSourcePartUriFromRelationshipPartUri(p.Uri);
1384
PackUriHelper
.ValidatedPartUri validatePartUri =
PackUriHelper
.ValidatePartUri(partUri);
1465
private SortedList<
PackUriHelper
.ValidatedPartUri, PackagePart> _partList;
Base\System\IO\Packaging\PackageDigitalSignature.cs (1)
403
Uri resolvedUri =
PackUriHelper
.ResolvePartUri(SignaturePart.Uri, relationship.TargetUri);
Base\System\IO\Packaging\PackageDigitalSignatureManager.cs (14)
572
Uri certificatePartName =
PackUriHelper
.CreatePartUri(new Uri(
784
_container.DeletePart(
PackUriHelper
.ResolvePartUri(r.SourceUri, r.TargetUri)); // will not throw if part not found
1146
Uri certificatePartName =
PackUriHelper
.ResolvePartUri(r.SourceUri, r.TargetUri);
1162
PackUriHelper
.PackageRootUri,
1172
Uri targetUri =
PackUriHelper
.ResolvePartUri(r.SourceUri, r.TargetUri);
1173
if (
PackUriHelper
.ComparePartUri(targetUri, _originPartName) == 0)
1194
if (
PackUriHelper
.ComparePartUri(
PackUriHelper
.ResolvePartUri(r.SourceUri, r.TargetUri), uri) == 0)
1231
if (
PackUriHelper
.ComparePartUri(uri, _signatures[i].SignaturePart.Uri) == 0)
1252
if (
PackUriHelper
.ComparePartUri(certificatePartUri, _signatures[i].GetCertificatePart().Uri) == 0)
1266
return
PackUriHelper
.CreatePartUri(new Uri(_defaultSignaturePartNamePrefix +
1290
Uri signaturePartName =
PackUriHelper
.ResolvePartUri(_originPart.Uri, r.TargetUri);
1334
Uri targetUri =
PackUriHelper
.ResolvePartUri(r.SourceUri, r.TargetUri);
1403
private static Uri _defaultOriginPartName =
PackUriHelper
.CreatePartUri(new Uri("/package/services/digital-signature/origin.psdsor", UriKind.Relative));
Base\System\IO\Packaging\PackagePart.cs (3)
137
_uri =
PackUriHelper
.ValidatePartUri(partUri);
147
_isRelationshipPart =
PackUriHelper
.IsRelationshipPartUri(partUri);
917
private
PackUriHelper
.ValidatedPartUri _uri;
Base\System\IO\Packaging\PackagePartCollection.cs (2)
101
internal PackagePartCollection(SortedList<
PackUriHelper
.ValidatedPartUri, PackagePart> partList)
141
private SortedList<
PackUriHelper
.ValidatedPartUri, PackagePart> _partList;
Base\System\IO\Packaging\PackageRelationship.cs (2)
60
return
PackUriHelper
.PackageRootUri;
276
private static readonly Uri _containerRelationshipPartName =
PackUriHelper
.CreatePartUri(new Uri("/_rels/.rels", UriKind.Relative));
Base\System\IO\Packaging\PackageRelationshipSelector.cs (4)
59
if(Uri.Compare(sourceUri,
PackUriHelper
.PackageRootUri, UriComponents.SerializationInfoString, UriFormat.UriEscaped, StringComparison.Ordinal) != 0)
60
sourceUri =
PackUriHelper
.ValidatePartUri(sourceUri);
154
if (SourceUri.Equals(
PackUriHelper
.PackageRootUri))
171
if (SourceUri.Equals(
PackUriHelper
.PackageRootUri))
Base\System\IO\Packaging\PackUriHelper.cs (7)
139
absolutePackageUri = String.Concat(
PackUriHelper
.UriSchemePack, Uri.SchemeDelimiter, absolutePackageUri);
358
if (firstPackageUri.Scheme ==
PackUriHelper
.UriSchemePack && secondPackageUri.Scheme ==
PackUriHelper
.UriSchemePack)
506
if (
PackUriHelper
.ComparePartUri(PackageRelationship.ContainerRelationshipPartName, relationshipPartUri) == 0)
740
if (packUri.Scheme !=
PackUriHelper
.UriSchemePack)
985
private static
PackUriHelper
.ValidatedPartUri GetPartUriComponent(Uri packUri)
1222
if (
PackUriHelper
.ComparePartUri(_containerRelationshipNormalizedPartUri, this) == 0)
Base\System\IO\Packaging\ZipPackage.cs (32)
78
partUri =
PackUriHelper
.ValidatePartUri(partUri);
100
_contentTypeHelper.AddContentType((
PackUriHelper
.ValidatedPartUri)partUri, new ContentType(contentType), method, deflateOption,
102
return new ZipPackagePart(this, _zipArchive, (
PackUriHelper
.ValidatedPartUri)partUri, contentType, compressionOption);
108
_ignoredItemHelper.Delete((
PackUriHelper
.ValidatedPartUri)partUri);
113
string zipItemName = ((
PackUriHelper
.ValidatedPartUri)partUri).PartUriString.Substring(1);
118
_contentTypeHelper.AddContentType((
PackUriHelper
.ValidatedPartUri)partUri, new ContentType(contentType), method, deflateOption,
121
return new ZipPackagePart(this, zipFileInfo, (
PackUriHelper
.ValidatedPartUri)partUri, contentType, compressionOption);
167
partUri =
PackUriHelper
.ValidatePartUri(partUri);
169
string partZipName = GetZipItemNameFromOpcName(
PackUriHelper
.GetStringForPartUri(partUri));
201
_ignoredItemHelper.Delete((
PackUriHelper
.ValidatedPartUri)partUri);
204
_contentTypeHelper.DeleteContentType((
PackUriHelper
.ValidatedPartUri)partUri);
275
PackUriHelper
.ValidatedPartUri validatedPartUri;
276
if (
PackUriHelper
.TryValidatePartUri(partUri, out validatedPartUri))
305
PackUriHelper
.ValidatedPartUri validatedPartUri;
306
if (
PackUriHelper
.TryValidatePartUri(partUri, out validatedPartUri))
778
PackUriHelper
.ValidatedPartUri partUri = pieces[startIndex].PartUri;
924
internal void AddContentType(
PackUriHelper
.ValidatedPartUri partUri, ContentType contentType,
979
internal ContentType GetContentType(
PackUriHelper
.ValidatedPartUri partUri)
1002
internal void DeleteContentType(
PackUriHelper
.ValidatedPartUri partUri)
1066
foreach (
PackUriHelper
.ValidatedPartUri key in _overrideDictionary.Keys)
1107
_overrideDictionary = new Dictionary<
PackUriHelper
.ValidatedPartUri, ContentType>(_overrideDictionaryInitialSize);
1342
PackUriHelper
.ValidatedPartUri temporaryUri =
PackUriHelper
.ValidatePartUri(
1371
PackUriHelper
.ValidatedPartUri partUri =
PackUriHelper
.ValidatePartUri(new Uri(partNameAttributeValue, UriKind.Relative));
1403
private void AddOverrideElement(
PackUriHelper
.ValidatedPartUri partUri, ContentType contentType, bool inStreamingCreation)
1446
private void WriteOverrideElement(XmlWriter xmlWriter,
PackUriHelper
.ValidatedPartUri partUri, ContentType contentType)
1513
private Dictionary<
PackUriHelper
.ValidatedPartUri, ContentType> _overrideDictionary;
1599
internal void AddItemForAtomicPart(
PackUriHelper
.ValidatedPartUri partUri, string zipFileName)
1653
internal void Delete(
PackUriHelper
.ValidatedPartUri partUri)
1690
private void AddItem(
PackUriHelper
.ValidatedPartUri partUri, string normalizedPrefixName, string zipFileName)
1703
private void UpdateExtensionDictionary(
PackUriHelper
.ValidatedPartUri partUri, string normalizedPrefixName)
Base\System\IO\Packaging\ZipPackagePart.cs (4)
69
PackUriHelper
.GetStringForPartUri(this.Uri),
115
PackUriHelper
.ValidatedPartUri partUri,
137
PackUriHelper
.ValidatedPartUri partUri,
158
PackUriHelper
.ValidatedPartUri partUri,