5 types derived from PackagePart
PresentationCore (1)
MS\Internal\AppModel\SiteOfOriginPart.cs (1)
21
internal class SiteOfOriginPart : System.IO.Packaging.
PackagePart
PresentationFramework (2)
MS\Internal\AppModel\ContentFilePart.cs (1)
20
internal class ContentFilePart : System.IO.Packaging.
PackagePart
MS\Internal\AppModel\ResourcePart.cs (1)
28
internal class ResourcePart : System.IO.Packaging.
PackagePart
PresentationUI (1)
MS\Internal\Documents\Application\WriteableOnDemandPackagePart.cs (1)
42
internal sealed class WriteableOnDemandPackagePart :
PackagePart
System.IO.Packaging (1)
System\IO\Packaging\ZipPackagePart.cs (1)
14
public sealed class ZipPackagePart :
PackagePart
231 references to PackagePart
BuildBoss (7)
CompilerNuGetCheckerUtil.cs (5)
41
public
PackagePart
PackagePart { get; }
46
public PackagePartData(
PackagePart
part, string checksum)
309
foreach (
var
part in package.GetParts())
340
private static IEnumerable<
PackagePart
> GetPartsInFolder(Package package, string folderRelativePath)
378
foreach (
var
part in GetPartsInFolder(package, folderRelativeName))
Extensions.cs (2)
19
internal static string GetRelativeName(this
PackagePart
part)
30
internal static string GetName(this
PackagePart
part) => Path.GetFileName(GetRelativeName(part));
Microsoft.DotNet.Build.Tasks.VisualStudio (2)
Vsix\FinalizeInsertionVsixFile.cs (2)
47
var
part = package.GetPart(new Uri(VsixManifestPartName, UriKind.Relative));
110
var
part = package.GetPart(new Uri("/manifest.json", UriKind.Relative));
Microsoft.DotNet.NuGetRepack.Tasks (2)
src\NuGetVersionUpdater.cs (1)
132
foreach (
var
part in package.GetParts())
src\ReplacePackageParts.cs (1)
130
foreach (
var
part in package.GetParts())
PresentationCore (5)
MS\Internal\AppModel\SiteOfOriginContainer.cs (3)
189
protected override
PackagePart
GetPartCore(Uri uri)
222
protected override
PackagePart
CreatePartCore(Uri uri, string contentType, CompressionOption compressionOption)
232
protected override
PackagePart
[] GetPartsCore()
System\IO\Packaging\PackWebResponse.cs (2)
238
PackagePart
p = c.GetPart(_partName);
630
PackagePart
p = _cacheEntry.GetPart(_parent._partName);
PresentationFramework (33)
MS\Internal\AppModel\ResourceContainer.cs (3)
193
protected override
PackagePart
GetPartCore(Uri uri)
402
protected override
PackagePart
CreatePartCore(Uri uri, string contentType, CompressionOption compressionOption)
412
protected override
PackagePart
[] GetPartsCore()
MS\Internal\IO\Packaging\PackageFilter.cs (2)
364
PackagePart
currentPart = (
PackagePart
)_partIterator.Current;
System\Windows\Application.cs (4)
433
PackagePart
part = GetResourceOrContentPart(resourceLocator);
496
PackagePart
part = GetResourceOrContentPart(packUri);
2076
private static
PackagePart
GetResourceOrContentPart(Uri uri)
2095
PackagePart
part = null;
System\Windows\Documents\FixedDocument.cs (1)
981
PackagePart
part = package.GetPart(partUri);
System\Windows\Documents\FixedSchema.cs (6)
570
PackagePart
part = package.GetPart(partUri);
589
PackagePart
targetPart = package.GetPart(targetUri);
611
PackagePart
targetPart = package.GetPart(targetUri);
631
PackagePart
targetPart = package.GetPart(targetUri);
659
PackagePart
targetPart = package.GetPart(targetUri);
682
PackagePart
targetPart = package.GetPart(targetUri);
System\Windows\Documents\WpfPayload.cs (15)
213
PackagePart
xamlEntryPart = wpfPayload.CreateWpfEntryPart();
253
PackagePart
xamlEntryPart = wpfPayload.CreateWpfEntryPart();
312
PackagePart
xamlEntryPart = wpfPayload.ValidatePayload();
360
private
PackagePart
ValidatePayload()
363
PackagePart
xamlEntryPart = this.GetWpfEntryPart();
428
private void CreateComponentParts(
PackagePart
sourcePart)
448
private void CreateImagePart(
PackagePart
sourcePart, BitmapSource imageSource, string imageContentType, int imageIndex)
457
PackagePart
imagePart = _package.CreatePart(imagePartUri, imageContentType, CompressionOption.NotCompressed);
669
PackagePart
part = this.CreateWpfEntryPart();
685
PackagePart
imagePart = _package.CreatePart(imagePartUri, contentType, CompressionOption.NotCompressed);
702
PackagePart
imagePart = _package.GetPart(imagePartUri);
763
private
PackagePart
CreateWpfEntryPart()
769
PackagePart
part = _package.CreatePart(entryPartUri, XamlContentType, CompressionOption.Normal);
795
private
PackagePart
GetWpfEntryPart()
797
PackagePart
wpfEntryPart = null;
System\Windows\Documents\XPSS0ValidatingLoader.cs (2)
102
PackagePart
part = package.GetPart(partUri);
110
PackagePart
targetPart = package.GetPart(targetUri);
PresentationUI (26)
MS\Internal\Documents\Application\RestrictedTransactionalPackage.cs (2)
50
foreach (
PackagePart
part in TempPackage.GetParts())
83
protected override
PackagePart
CreatePartCore(
MS\Internal\Documents\Application\TransactionalPackage.cs (18)
110
foreach (
PackagePart
part in _tempPackage.GetParts())
155
foreach (
PackagePart
part in newPackage.GetParts())
210
protected override
PackagePart
CreatePartCore(
218
PackagePart
result = _tempPackage.CreatePart(
348
protected override
PackagePart
GetPartCore(Uri partUri)
352
PackagePart
result = null;
407
PackagePart
original = _originalPackage.GetPart(partUri);
433
protected override
PackagePart
[] GetPartsCore()
438
List<
PackagePart
> _proxiedParts = new List<
PackagePart
>();
442
foreach (
PackagePart
part in parts)
448
PackagePart
[] result = new
PackagePart
[_proxiedParts.Count];
479
private static void CopyPackagePartStream(
PackagePart
original,
PackagePart
copy)
520
private
PackagePart
TempPackagePartFactory(
PackagePart
packagePart)
528
PackagePart
temp = null;
MS\Internal\Documents\Application\WriteableOnDemandPackagePart.cs (6)
60
PackagePart
readingPart,
81
internal
PackagePart
Target
103
internal delegate
PackagePart
WriteablePackagePartFactoryDelegate(
104
PackagePart
requestor);
190
PackagePart
writingPart = _getWriteablePartInstance(this);
219
private
PackagePart
_activePart;
ReachFramework (99)
Packaging\PartEditor.cs (4)
38
PackagePart
metroPart
50
protected
PackagePart
MetroPart
130
private
PackagePart
_metroPart;
160
PackagePart
metroPart
Packaging\XpsColorContext.cs (1)
31
PackagePart
part
Packaging\XpsDocument.cs (6)
220
PackagePart
startingPart = CurrentXpsManager.StartingPart;
305
List<
PackagePart
> xmlPartList = new List<
PackagePart
>();
309
foreach(
PackagePart
part in xmlPartList )
555
PackagePart
metroPart = CurrentXpsManager.GenerateUniquePart(XpsS0Markup.DocumentSequenceContentType);
976
PackagePart
Packaging\XpsFixedDocumentReaderWriter.cs (13)
259
PackagePart
part,
428
PackagePart
metroPart = this.CurrentXpsManager.GenerateUniquePart(XpsS0Markup.FixedPageContentType);
483
PackagePart
metroPart = this.CurrentXpsManager.GeneratePart(
718
PackagePart
signatureDefinitionPart =
763
List<
PackagePart
> xmlPartList
792
PackagePart
signatureDefinitionPart =
972
PackagePart
pagePart = CurrentXpsManager.GetPart(pageUri);
1019
PackagePart
sigDefPart =
1038
PackagePart
documentStructurePart = null;
1065
PackagePart
sigDefPart,
1115
PackagePart
sigDefPart =
1144
private
PackagePart
_metroPart;
1250
PackagePart
Packaging\XpsFixedDocumentSequenceReaderWriter.cs (6)
195
PackagePart
part
308
PackagePart
metroPart = CurrentXpsManager.GenerateUniquePart(XpsS0Markup.FixedDocumentContentType);
456
List<
PackagePart
> xmlPartList
609
PackagePart
documentPart = CurrentXpsManager.GetPart(documentUri);
640
private
PackagePart
_metroPart;
719
PackagePart
Packaging\XpsFixedPageReaderWriter.cs (21)
443
PackagePart
part,
788
PackagePart
metroPart = null;
861
PackagePart
metroPart = this.CurrentXpsManager.GeneratePart(
967
PackagePart
metroPart = null;
1039
PackagePart
metroPart = this.CurrentXpsManager.GenerateUniquePart(XpsS0Markup.ColorContextContentType);
1065
PackagePart
metroPart = this.CurrentXpsManager.GenerateUniquePart(XpsS0Markup.ResourceDictionaryContentType);
1257
PackagePart
metroPart = this.CurrentXpsManager.GenerateUniquePart(mimeType);
1379
List<
PackagePart
> xmlPartList
1520
PackagePart
parentPart = ((INode)_parentNode).GetPart();
1530
PackagePart
part = CurrentXpsManager.GetPart(absUri);
1615
PackagePart
packagePart
1618
PackagePart
metroPart;
1656
PackagePart
packagePart
1659
PackagePart
metroPart;
1730
PackagePart
packagePart
1733
PackagePart
metroPart;
1767
PackagePart
packagePart
1770
PackagePart
metroPart;
1803
PackagePart
1934
private
PackagePart
_metroPart;
2094
PackagePart
Packaging\XpsFont.cs (1)
31
PackagePart
part
Packaging\XpsImage.cs (1)
34
PackagePart
part
Packaging\XpsInterleavingPolicy.cs (1)
622
PackagePart
Packaging\XpsManager.cs (39)
55
_cachedParts = new Dictionary<Uri,
PackagePart
>(11);
185
public
PackagePart
StartingPart
189
PackagePart
part = null;
287
PackagePart
315
PackagePart
metroPart = _metroPackage.CreatePart(partUri,
338
PackagePart
369
PackagePart
printTicketPart = GetPrintTicketPart(partUri);
385
PackagePart
401
PackagePart
metroPart = _metroPackage.CreatePart(partUri,
431
PackagePart
metroPart,
446
PackagePart
printTicketPart = GeneratePart(XpsS0Markup.PrintTicketContentType, printTicketUri);
487
PackagePart
metroPart
500
PackagePart
printTicketPart = GeneratePart(XpsS0Markup.PrintTicketContentType, printTicketUri);
527
PackagePart
544
PackagePart
part = _metroPackage.GetPart(uri);
551
PackagePart
552
AddSignatureDefinitionPart(
PackagePart
documentPart)
557
PackagePart
sigDefPart = GetSignatureDefinitionPart(documentPart.Uri);
572
PackagePart
575
PackagePart
documentPart = _metroPackage.GetPart( documentUri );
576
PackagePart
sigDefPart = null;
605
PackagePart
611
PackagePart
propertiesPart = null;
631
PackagePart
632
GetThumbnailPart(
PackagePart
parent)
635
PackagePart
thumbNailPart = null;
664
PackagePart
667
PackagePart
documentPart = _metroPackage.GetPart( documentUri );
668
PackagePart
printTicketPart = null;
698
PackagePart
704
PackagePart
propertiesPart = GetDocumentPropertiesPart();
737
EnsureThumbnail( INode parent,
PackagePart
part )
740
PackagePart
thumbNailPart = GetThumbnailPart(part);
772
PackagePart
propertiesPart = GetDocumentPropertiesPart();
985
_cachedParts = new Dictionary<Uri,
PackagePart
>(11);
1322
private Dictionary<Uri,
PackagePart
> _cachedParts;
1403
PackagePart
1410
PackagePart
startingPart = null;
1450
PackagePart
startingPart
Packaging\XpsResource.cs (3)
34
PackagePart
part
124
private
PackagePart
_metroPart;
152
PackagePart
Packaging\XpsResourceDictionary.cs (1)
32
PackagePart
part
Packaging\XpsStructure.cs (1)
31
PackagePart
part
Packaging\XpsThumbnail.cs (1)
31
PackagePart
part
System.IO.Packaging (56)
System\IO\Packaging\InternalRelationshipCollection.cs (7)
62
internal InternalRelationshipCollection(
PackagePart
part) : this(part.Package, part)
174
private InternalRelationshipCollection(Package package,
PackagePart
? part)
203
private static Uri GetRelationshipPartUri(
PackagePart
? part)
220
private void ParseRelationshipPart(
PackagePart
part)
456
private void WriteRelationshipPart(
PackagePart
part)
629
private readonly
PackagePart
? _sourcePart; // owning part - null if package is the owner
630
private
PackagePart
? _relationshipPart; // where our relationships are persisted
System\IO\Packaging\Package.cs (29)
36
_partList = new SortedList<PackUriHelper.ValidatedPartUri,
PackagePart
>(); // initial default is zero
187
public
PackagePart
CreatePart(Uri partUri, string contentType)
210
public
PackagePart
CreatePart(Uri partUri,
235
PackagePart
addedPart = CreatePartCore(validatedPartUri,
259
public
PackagePart
GetPart(Uri partUri)
261
PackagePart
? returnedPart = GetPartHelper(partUri);
317
if (_partList.TryGetValue(validatedPartUri, out
PackagePart
? value))
365
PackagePart
owningPart = this.GetPart(owningPartUri);
398
PackagePart
[] parts = GetPartsCore();
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);
441
partDictionary.Add(normalizedPartName, new KeyValuePair<PackUriHelper.ValidatedPartUri,
PackagePart
>(partUri, parts[i]));
729
protected abstract
PackagePart
CreatePartCore(Uri partUri,
741
protected abstract
PackagePart
? GetPartCore(Uri partUri);
758
protected abstract
PackagePart
[] GetPartsCore();
818
internal delegate bool PartOperation(
PackagePart
p);
979
private void AddIfNoPrefixCollisionDetected(PackUriHelper.ValidatedPartUri partUri,
PackagePart
? part)
1082
if (_partList.TryGetValue(partKeys[i], out
PackagePart
? p))
1095
private bool DoClose(
PackagePart
p)
1108
if (_partList.TryGetValue(owningPartUri, out
PackagePart
? sourcePart))
1116
private bool DoFlush(
PackagePart
p)
1122
private bool DoWriteRelationshipsXml(
PackagePart
p)
1131
private bool DoCloseRelationshipsXml(
PackagePart
p)
1140
private
PackagePart
? GetPartHelper(Uri partUri)
1150
if (_partList.TryGetValue(validatePartUri, out
PackagePart
? value))
1162
PackagePart
? returnedPart = GetPartCore(validatePartUri);
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\PackagePartCollection.cs (6)
15
public class PackagePartCollection : IEnumerable<
PackagePart
>
34
IEnumerator<
PackagePart
> IEnumerable<
PackagePart
>.GetEnumerator()
43
public IEnumerator<
PackagePart
> GetEnumerator()
52
internal PackagePartCollection(SortedList<PackUriHelper.ValidatedPartUri,
PackagePart
> partList)
62
private readonly SortedList<PackUriHelper.ValidatedPartUri,
PackagePart
> _partList;
System\IO\Packaging\PackageRelationship.cs (2)
113
internal PackageRelationship(Package package,
PackagePart
? sourcePart, Uri targetUri, TargetMode targetMode, string relationshipType, string id)
185
private readonly
PackagePart
? _source;
System\IO\Packaging\PackageRelationshipSelector.cs (1)
136
PackagePart
part = package.GetPart(SourceUri);
System\IO\Packaging\PartBasedPackageProperties.cs (4)
432
private
PackagePart
? GetPropertyPart()
443
PackagePart
? propertiesPart;
477
private void ParseCorePropertyPart(
PackagePart
part)
832
private
PackagePart
? _propertyPart;
System\IO\Packaging\ZipPackage.cs (7)
36
protected override
PackagePart
CreatePartCore(Uri partUri,
79
protected override
PackagePart
? GetPartCore(Uri partUri)
174
protected override
PackagePart
[] GetPartsCore()
176
List<
PackagePart
> parts = new List<
PackagePart
>(InitialPartListSize);
564
private void ProcessPieces(SortedSet<ZipPackagePartPiece> pieceSet, List<
PackagePart
> parts)
682
List<
PackagePart
> parts)
WindowsBase (1)
WindowsBase.cs (1)
14
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.Packaging.
PackagePart
))]