XpsPackagingPolicy.RelateResourceToCurrentPage(Uri, String) 方法

定义

添加可使指定资源与当前页关联的具有指定名称的 PackageRelationship

public:
 override void RelateResourceToCurrentPage(Uri ^ targetUri, System::String ^ relationshipName);
public override void RelateResourceToCurrentPage (Uri targetUri, string relationshipName);
override this.RelateResourceToCurrentPage : Uri * string -> unit
Public Overrides Sub RelateResourceToCurrentPage (targetUri As Uri, relationshipName As String)

参数

targetUri
Uri

要与当前页关联的资源的统一资源标识符 (URI)。

relationshipName
String

可使当前页与指定资源关联的 PackageRelationship 的标识名称。

适用于

另请参阅