PackageRelationship.Id PackageRelationship.Id PackageRelationship.Id PackageRelationship.Id Property

定义

获取标识关系的字符串。Gets a string that identifies the relationship.

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

属性值

标识关系的字符串。A string that identifies the relationship.

注解

对于包或部分拥有的所有关系,属性字符串是唯一的。Id SourceUriThe Id property string is unique for all relationships owned by the SourceUri package or part.

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

Id属性字符串是有效的 XML 标识符。The Id property string is a valid XML identifier. 类型为 xsd: ID, 必须遵循XML 架构第2部分中规定的命名约定: Id数据类型规范 ( https://www.w3.org/TR/xmlschema-2/#ID请参阅)。The Id type is xsd:ID and must follow the naming conventions prescribed in the XML Schema Part 2: Datatypes specification (see https://www.w3.org/TR/xmlschema-2/#ID).

适用于

另请参阅