Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PackageRelationship.Id Property

Gets a string that identifies the relationship.

Namespace: System.IO.Packaging
Assembly: WindowsBase (in windowsbase.dll)

public string Id { get; }
/** @property */
public String get_Id ()

public function get Id () : String

You cannot use this property in XAML.

Property Value

A string that identifies the relationship.

The Id property string is unique for all relationships owned by the SourceUri package or part.

The Id is specified in the call to the Package.CreateRelationship or PackagePart.CreateRelationship method that created the relationship. After the relationship is created, the Id cannot be changed.

The Id property string is a valid XML identifier. The Id type is xsd:ID and must follow the naming conventions prescribed in the XML Schema Part 2: Datatypes specification (see http://www.w3.org/TR/xmlschema-2/#ID).

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft