7 instantiations of ValidatedPartUri
WindowsBase (7)
Base\System\IO\Packaging\PackUriHelper.cs (7)
245
return new
ValidatedPartUri
(partName);
472
return new
ValidatedPartUri
(partName, true /*IsRelationship*/);
532
return new
ValidatedPartUri
(path, false /*IsRelationship*/);
600
validatedPartUri = new
ValidatedPartUri
(partUriString);
636
return new
ValidatedPartUri
(partUriString);
1287
return new
ValidatedPartUri
(_normalizedPartUriString,
1324
private static readonly Uri _containerRelationshipNormalizedPartUri = new
ValidatedPartUri
("/_RELS/.RELS",
80 references to ValidatedPartUri
WindowsBase (80)
Base\MS\Internal\IO\Packaging\PieceNameHelper.cs (4)
48
internal PieceInfo(ZipFileInfo zipFileInfo, PackUriHelper.
ValidatedPartUri
partUri, string prefixName, int pieceNumber, bool isLastPiece)
115
internal PackUriHelper.
ValidatedPartUri
PartUri
141
private PackUriHelper.
ValidatedPartUri
_partUri;
427
internal PackUriHelper.
ValidatedPartUri
PartUri;
Base\System\IO\Packaging\Package.cs (17)
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;
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)
1298
PackUriHelper.
ValidatedPartUri
[] partKeys = new PackUriHelper.
ValidatedPartUri
[_partList.Keys.Count];
1300
foreach (PackUriHelper.
ValidatedPartUri
uri in _partList.Keys)
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\PackagePart.cs (1)
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\PackUriHelper.cs (28)
323
if (!(partUri is
ValidatedPartUri
))
325
return ((
ValidatedPartUri
)partUri).NormalizedPartUri;
400
return ((IComparable<
ValidatedPartUri
>)firstPartUri).CompareTo((
ValidatedPartUri
)secondPartUri);
418
if(!(partUri is
ValidatedPartUri
))
421
return ((
ValidatedPartUri
)partUri).IsRelationshipPartUri;
455
string partName = ((
ValidatedPartUri
)partUri).PartUriString;
513
string path = ((
ValidatedPartUri
)relationshipPartUri).PartUriString;
582
internal static bool TryValidatePartUri(Uri partUri, out
ValidatedPartUri
validatedPartUri)
584
if (partUri is
ValidatedPartUri
)
586
validatedPartUri = (
ValidatedPartUri
)partUri;
621
internal static
ValidatedPartUri
ValidatePartUri(Uri partUri)
623
if (partUri is
ValidatedPartUri
)
624
return (
ValidatedPartUri
)partUri;
644
if (!(partUri is
ValidatedPartUri
))
647
return ((
ValidatedPartUri
)partUri).PartUriString;
918
Debug.Assert(!(partUri is
ValidatedPartUri
), "This method should only be called when we have not already validated the part uri");
985
private static PackUriHelper.
ValidatedPartUri
GetPartUriComponent(Uri packUri)
1046
internal sealed class ValidatedPartUri : Uri, IComparable<
ValidatedPartUri
>, IEquatable<
ValidatedPartUri
>
1080
int IComparable<
ValidatedPartUri
>.CompareTo(
ValidatedPartUri
otherPartUri)
1089
bool IEquatable<
ValidatedPartUri
>.Equals(
ValidatedPartUri
otherPartUri)
1144
internal
ValidatedPartUri
NormalizedPartUri
1282
private
ValidatedPartUri
GetNormalizedPartUri()
1293
private int Compare(
ValidatedPartUri
otherPartUri)
1309
private
ValidatedPartUri
_normalizedPartUri;
Base\System\IO\Packaging\ZipPackage.cs (25)
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);
201
_ignoredItemHelper.Delete((PackUriHelper.
ValidatedPartUri
)partUri);
204
_contentTypeHelper.DeleteContentType((PackUriHelper.
ValidatedPartUri
)partUri);
275
PackUriHelper.
ValidatedPartUri
validatedPartUri;
305
PackUriHelper.
ValidatedPartUri
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 (3)
115
PackUriHelper.
ValidatedPartUri
partUri,
137
PackUriHelper.
ValidatedPartUri
partUri,
158
PackUriHelper.
ValidatedPartUri
partUri,