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 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기