语言

PackageRelationship.RelationshipType 属性

定义

获取关系的限定类型名称。

public:
 property System::String ^ RelationshipType { System::String ^ get(); };
public string RelationshipType { get; }
member this.RelationshipType : string
Public ReadOnly Property RelationshipType As String

属性值

关系的限定类型名称。

注解

在 RelationshipType 对 Package 的CreateRelationship 调用或 PackagePart.CreateRelationship 方法中创建关系时指定了该值。 创建关系后,无法更改关系 RelationshipType 。

RelationshipType 在类似于 URI 的语法中定义并标识关系的角色。 例如, "http://schemas.microsoft.com/xps/2005/06/required-resource" 标识与作为“required-resource”的目标部件的关系。

Package-Wide 关系类型

Description 关系类型
核心属性 http://schemas.microsoft.com/package/2006/relationships/metadata/core-properties
数字签名 http://schemas.microsoft.com/package/2006/relationships/digital-signature/signature
数字签名证书 http://schemas.microsoft.com/package/2006/relationships/digital-signature/certificate
数字签名源 http://schemas.microsoft.com/package/2006/relationships/digital-signature/origin
缩略图 http://schemas.microsoft.com/package/2006/relationships/metadata/thumbnail

有关包关系类型的详细信息,请参阅可供下载的https://www.ecma-international.org/publications-and-standards/standards/ecma-376/规范的第 3 章和第一章。

适用于

另请参阅