次の方法で共有


SlideLayoutPart.AddAudioReferenceRelationship Method (MediaDataPart)

Adds a new AudioReferenceRelationship to the specified MediaDataPart.

Namespace: DocumentFormat.OpenXml.Packaging
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'宣言
Public Function AddAudioReferenceRelationship ( _
    mediaDataPart As MediaDataPart _
) As AudioReferenceRelationship
'使用
Dim instance As SlideLayoutPart
Dim mediaDataPart As MediaDataPart
Dim returnValue As AudioReferenceRelationship

returnValue = instance.AddAudioReferenceRelationship(mediaDataPart)
public AudioReferenceRelationship AddAudioReferenceRelationship(
    MediaDataPart mediaDataPart
)

Parameters

Return Value

Type: DocumentFormat.OpenXml.Packaging.AudioReferenceRelationship
The new AudioReferenceRelationship.

Exceptions

Exception Condition
ArgumentNullException

Thrown when mediaDataPart is null reference.

InvalidOperationException

Thrown when the specified mediaDataPart is not in this document.

See Also

Reference

SlideLayoutPart Class

SlideLayoutPart Members

AddAudioReferenceRelationship Overload

DocumentFormat.OpenXml.Packaging Namespace