OpenXmlPartContainer.ChangeIdOfPart Method
Office 2010
Changes the relationship ID of the part.
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Parameters
- part
- Type: DocumentFormat.OpenXml.Packaging.OpenXmlPart
The target part.
- newRelationshipId
- Type: System.String
The new relationship ID of the part.
| Exception | Condition |
|---|---|
| ArgumentNullException | Throw when "part" is null reference or the newRelationshipId is null reference. |
| ArgumentOutOfRangeException | Thrown when the part does not exist under this part. |
| ArgumentException | Thrown when the specified relationship id is already used by another part. |