1 instantiation of PackageRelationship
System.IO.Packaging (1)
System\IO\Packaging\InternalRelationshipCollection.cs (1)
442
PackageRelationship relationship = new
PackageRelationship
(_package, _sourcePart, targetUri, targetMode, relationshipType, id);
77 references to PackageRelationship
PresentationFramework (12)
System\Windows\Documents\FixedDocument.cs (1)
985
foreach (
PackageRelationship
relationShip in resources)
System\Windows\Documents\FixedSchema.cs (5)
577
foreach (
PackageRelationship
rel in checkRels)
599
foreach (
PackageRelationship
rel in checkRels)
625
foreach (
PackageRelationship
rel in checkRels)
647
foreach (
PackageRelationship
rel in checkRels)
670
foreach (
PackageRelationship
rel in checkRels)
System\Windows\Documents\WpfPayload.cs (4)
460
PackageRelationship
componentRelationship = sourcePart.CreateRelationship(imagePartUri, TargetMode.Internal, XamlRelationshipFromXamlPartToComponentPart);
782
PackageRelationship
entryRelationship = _package.CreateRelationship(entryPartUri, TargetMode.Internal, XamlRelationshipFromPackageToEntryPart);
801
PackageRelationship
entryPartRelationship = null;
802
foreach (
PackageRelationship
packageRelationship in entryPartRelationships)
System\Windows\Documents\XPSS0ValidatingLoader.cs (2)
20
using PackageRelationship = System.IO.Packaging.
PackageRelationship
;
105
foreach (
PackageRelationship
relationShip in requiredResources)
ReachFramework (23)
Packaging\XpsFixedDocumentReaderWriter.cs (4)
26
using PackageRelationship = System.IO.Packaging.
PackageRelationship
;
528
foreach (
PackageRelationship
rel in _metroPart.GetRelationships())
1037
PackageRelationship
documentStructureRelationship = null;
1040
foreach (
PackageRelationship
rel in _metroPart.GetRelationshipsByType(XpsS0Markup.StructureRelationshipName))
Packaging\XpsFixedPageReaderWriter.cs (6)
28
using PackageRelationship = System.IO.Packaging.
PackageRelationship
;
741
foreach (
PackageRelationship
rel in _metroPart.GetRelationships())
1521
Dictionary<Uri,
PackageRelationship
> restictedFontRels = new Dictionary<Uri,
PackageRelationship
>(MS.Internal.UriComparer.Default);
1522
foreach(
PackageRelationship
rel in parentPart.GetRelationshipsByType(XpsS0Markup.RestrictedFontRelationshipType) )
1527
foreach(
PackageRelationship
rel in _metroPart.GetRelationships() )
Packaging\XpsManager.cs (13)
26
using PackageRelationship = System.IO.Packaging.
PackageRelationship
;
585
PackageRelationship
SigDefRel = null;
587
foreach (
PackageRelationship
rel in
608
PackageRelationship
propertiesPartRelationship =
634
PackageRelationship
thumbNailRel = null;
648
foreach(
PackageRelationship
rel in thumbnailCollection )
677
PackageRelationship
printTicketRel = null;
679
foreach (
PackageRelationship
rel in
1243
PackageRelationship
1246
PackageRelationship
propertiesPartRelationship = null;
1247
foreach (
PackageRelationship
rel in _metroPackage.GetRelationshipsByType(XpsS0Markup.CorePropertiesRelationshipType))
1409
PackageRelationship
startingPartRelationship = null;
1412
foreach (
PackageRelationship
rel in package.GetRelationshipsByType(XpsS0Markup.ReachPackageStartingPartRelationshipType))
System.IO.Packaging (41)
System\IO\Packaging\InternalRelationshipCollection.cs (11)
28
internal sealed class InternalRelationshipCollection : IEnumerable<
PackageRelationship
>
50
public IEnumerator<
PackageRelationship
> GetEnumerator()
82
internal
PackageRelationship
Add(Uri targetUri, TargetMode targetMode, string relationshipType, string? id)
90
internal
PackageRelationship
? GetRelationship(string id)
91
=> _relationships.TryGetValue(id, out
var
result) ? result : null;
183
_relationships = new OrderedDictionary<string,
PackageRelationship
>(4);
390
private
PackageRelationship
Add(Uri targetUri, TargetMode targetMode, string relationshipType, string? id, bool parsing)
442
PackageRelationship
relationship = new PackageRelationship(_package, _sourcePart, targetUri, targetMode, relationshipType, id);
494
internal static void WriteRelationshipsAsXml(XmlWriter writer, IEnumerable<
PackageRelationship
> relationships, bool alwaysWriteTargetModeAttribute)
496
foreach (
PackageRelationship
relationship in relationships)
626
private readonly OrderedDictionary<string,
PackageRelationship
> _relationships;
System\IO\Packaging\Package.cs (6)
578
public
PackageRelationship
CreateRelationship(Uri targetUri, TargetMode targetMode, string relationshipType)
602
public
PackageRelationship
CreateRelationship(Uri targetUri, TargetMode targetMode, string relationshipType, string? id)
685
public
PackageRelationship
GetRelationship(string id)
690
PackageRelationship
? returnedRelationship = GetRelationshipHelper(id);
1099
if (PackUriHelper.IsRelationshipPartUri(p.Uri) && PackUriHelper.ComparePartUri(p.Uri,
PackageRelationship
.ContainerRelationshipPartName) != 0)
1179
private
PackageRelationship
? GetRelationshipHelper(string id)
System\IO\Packaging\PackagePart.cs (5)
382
public
PackageRelationship
CreateRelationship(Uri targetUri, TargetMode targetMode, string relationshipType)
408
public
PackageRelationship
CreateRelationship(Uri targetUri, TargetMode targetMode, string relationshipType, string? id)
496
public
PackageRelationship
GetRelationship(string id)
501
PackageRelationship
? returnedRelationship = GetRelationshipHelper(id);
743
private
PackageRelationship
? GetRelationshipHelper(string id)
System\IO\Packaging\PackageRelationshipCollection.cs (8)
17
public class PackageRelationshipCollection : IEnumerable<
PackageRelationship
>
35
public IEnumerator<
PackageRelationship
> GetEnumerator()
37
IEnumerator<
PackageRelationship
> relationshipsEnumerator = _relationships.GetEnumerator();
75
private sealed class FilteredEnumerator : IEnumerator<
PackageRelationship
>
84
internal FilteredEnumerator(IEnumerator<
PackageRelationship
> enumerator, string filter)
146
public
PackageRelationship
Current
170
PackageRelationship
r = _enumerator.Current;
178
private readonly IEnumerator<
PackageRelationship
> _enumerator;
System\IO\Packaging\PackageRelationshipSelector.cs (5)
115
public List<
PackageRelationship
> Select(Package package)
122
List<
PackageRelationship
> relationships = new List<
PackageRelationship
>(0);
146
foreach (
PackageRelationship
r in package.GetRelationshipsByType(SelectionCriteria))
153
foreach (
PackageRelationship
r in package.GetPart(SourceUri).GetRelationshipsByType(SelectionCriteria))
System\IO\Packaging\PackUriHelper.cs (2)
216
return
PackageRelationship
.ContainerRelationshipPartName;
280
if (PackUriHelper.ComparePartUri(
PackageRelationship
.ContainerRelationshipPartName, relationshipPartUri) == 0)
System\IO\Packaging\PartBasedPackageProperties.cs (4)
435
PackageRelationship
? corePropertiesRelationship = GetCorePropertiesRelationship();
461
private
PackageRelationship
? GetCorePropertiesRelationship()
463
PackageRelationship
? propertiesPartRelationship = null;
464
foreach (
PackageRelationship
rel
WindowsBase (1)
WindowsBase.cs (1)
17
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.Packaging.
PackageRelationship
))]