SlidePart.AddAudioReferenceRelationship 方法

定义

重载

AddAudioReferenceRelationship(MediaDataPart)

将 AudioReferenceRelationship 添加到 SlidePart

AddAudioReferenceRelationship(MediaDataPart, String)

将 AudioReferenceRelationship 添加到 SlidePart

AddAudioReferenceRelationship(MediaDataPart)

将 AudioReferenceRelationship 添加到 SlidePart

public DocumentFormat.OpenXml.Packaging.AudioReferenceRelationship AddAudioReferenceRelationship (DocumentFormat.OpenXml.Packaging.MediaDataPart mediaDataPart);
member this.AddAudioReferenceRelationship : DocumentFormat.OpenXml.Packaging.MediaDataPart -> DocumentFormat.OpenXml.Packaging.AudioReferenceRelationship
Public Function AddAudioReferenceRelationship (mediaDataPart As MediaDataPart) As AudioReferenceRelationship

参数

mediaDataPart
MediaDataPart

AudioReferenceRelationship 的部件类型

返回

新的 AudioReferenceRelationship

例外

当 为 null 时 mediaDataPart 引发。

当指定的 mediaDataPart 不在本文档中时引发。

适用于

AddAudioReferenceRelationship(MediaDataPart, String)

将 AudioReferenceRelationship 添加到 SlidePart

public DocumentFormat.OpenXml.Packaging.AudioReferenceRelationship AddAudioReferenceRelationship (DocumentFormat.OpenXml.Packaging.MediaDataPart mediaDataPart, string id);
member this.AddAudioReferenceRelationship : DocumentFormat.OpenXml.Packaging.MediaDataPart * string -> DocumentFormat.OpenXml.Packaging.AudioReferenceRelationship
Public Function AddAudioReferenceRelationship (mediaDataPart As MediaDataPart, id As String) As AudioReferenceRelationship

参数

mediaDataPart
MediaDataPart

AudioReferenceRelationship 的部件类型

id
String

关系 ID

返回

新的 AudioReferenceRelationship

例外

当 为 null 时 id 引发。

当指定的 mediaDataPart 不在本文档中时引发。

适用于