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