OpenXmlPartContainer.AddHyperlinkRelationship Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddHyperlinkRelationship(Uri, Boolean) |
Adds a new hyperlink relationship. |
AddHyperlinkRelationship(Uri, Boolean, String) |
Adds a new hyperlink relationship. |
AddHyperlinkRelationship(Uri, Boolean)
Adds a new hyperlink relationship.
public DocumentFormat.OpenXml.Packaging.HyperlinkRelationship AddHyperlinkRelationship (Uri hyperlinkUri, bool isExternal);
member this.AddHyperlinkRelationship : Uri * bool -> DocumentFormat.OpenXml.Packaging.HyperlinkRelationship
Public Function AddHyperlinkRelationship (hyperlinkUri As Uri, isExternal As Boolean) As HyperlinkRelationship
Parameters
- hyperlinkUri
- Uri
The URI of the hyperlink.
- isExternal
- Boolean
Is the hyperlink external to the OpenXmlPackage.
Returns
An HyperlinkRelationship with the relationship ID.
Exceptions
Thrown when "hyperlinkUri" is null reference.
Applies to
AddHyperlinkRelationship(Uri, Boolean, String)
Adds a new hyperlink relationship.
public DocumentFormat.OpenXml.Packaging.HyperlinkRelationship AddHyperlinkRelationship (Uri hyperlinkUri, bool isExternal, string id);
member this.AddHyperlinkRelationship : Uri * bool * string -> DocumentFormat.OpenXml.Packaging.HyperlinkRelationship
Public Function AddHyperlinkRelationship (hyperlinkUri As Uri, isExternal As Boolean, id As String) As HyperlinkRelationship
Parameters
- hyperlinkUri
- Uri
The URI of the hyperlink.
- isExternal
- Boolean
Is the hyperlink external to the OpenXmlPackage.
- id
- String
The desired relationship ID.
Returns
An HyperlinkRelationship with the relationship ID.
Exceptions
Thrown when "hyperlinkUri" or "id" is null reference.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應