PackageRelationship.RelationshipType 属性

定义

获取关系的限定类型名称。Gets the qualified type name of the relationship.

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

属性值

String

关系的限定类型名称。The qualified type name of the relationship.

注解

在对 RelationshipType 的调用中指定。CreateRelationshipThe RelationshipType is specified in the call to the Package.CreateRelationship PackagePartCreateRelationshipor PackagePart.CreateRelationship 创建关系的方法。method that created the relationship. 创建关系后,将 RelationshipType 无法更改。After the relationship is created, the RelationshipType cannot be changed.

RelationshipType 在类似 URI 的语法中定义并标识关系的角色。RelationshipType is defined in a URI-like syntax and identifies the role of the relationship. 例如, "http://schemas.microsoft.com/xps/2005/06/required-resource" 标识与作为 "required 资源" 的目标部分的关系。For example, "http://schemas.microsoft.com/xps/2005/06/required-resource" identifies the relationship to a target part that is a "required-resource."

包范围关系类型Package-Wide Relationship Types

说明Description 关系类型Relationship Type
核心属性Core Properties http://schemas.microsoft.com/package/2006/relationships/metadata/core-properties
数字签名Digital Signature http://schemas.microsoft.com/package/2006/relationships/digital-signature/signature
数字签名证书Digital Signature Certificate http://schemas.microsoft.com/package/2006/relationships/digital-signature/certificate
数字签名源Digital Signature Origin http://schemas.microsoft.com/package/2006/relationships/digital-signature/origin
缩略图Thumbnail http://schemas.microsoft.com/package/2006/relationships/metadata/thumbnail

有关包关系类型的详细信息,请参阅可供下载的 开放打包约定 规范的第3章和附录 I https://go.microsoft.com/fwlink/?LinkID=71255For more information about package relationship types see Chapter 3 and Appendix I of the Open Packaging Conventions specification available for download at https://go.microsoft.com/fwlink/?LinkID=71255.

适用于

另请参阅