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