PackageRelationship.TargetUri Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the URI of the target resource of the relationship.
public:
property Uri ^ TargetUri { Uri ^ get(); };
public Uri TargetUri { get; }
member this.TargetUri : Uri
Public ReadOnly Property TargetUri As Uri
Property Value
The URI of the target resource.
Remarks
The TargetUri is specified in the call to the Package.CreateRelationship or PackagePart.CreateRelationship method that created the relationship. After the relationship is created the TargetUri cannot be changed.
When TargetMode is Internal, the TargetUri MUST be a relative reference. For a package-level relationship, the relative reference of the TargetUri is resolved relative to the pack URI of the source package that owns and contains the relationship. (Example source package pack URI: "pack://http:,,www.adatum.com,files,datapak.package/".) For a part-level relationship, the TargetUri is resolved relative to the source part that owns the relationship (TargetUri is interpreted relative to SourceUri).
When TargetMode is External, the TargetUri can be either a relative reference or a fully qualified URI. If the TargetUri is a relative reference, the reference is interpreted as relative to the location of the Package that contains this relationship.
For more information about TargetUri see Section 1.3.3 "Relationship Markup" of the Open Packaging Conventions specification available for download at https://www.ecma-international.org/publications-and-standards/standards/ecma-376/.
Applies to
See also
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈