Freigeben über


NotesSlidePart.AddAudioReferenceRelationship-Methode (MediaDataPart, String)

Adds a new AudioReferenceRelationship to the specified MediaDataPart.

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

Syntax

'Declaration
Public Function AddAudioReferenceRelationship ( _
    mediaDataPart As MediaDataPart, _
    id As String _
) As AudioReferenceRelationship
'Usage
Dim instance As NotesSlidePart
Dim mediaDataPart As MediaDataPart
Dim id As String
Dim returnValue As AudioReferenceRelationship

returnValue = instance.AddAudioReferenceRelationship(mediaDataPart, _
    id)
public AudioReferenceRelationship AddAudioReferenceRelationship(
    MediaDataPart mediaDataPart,
    string id
)

Parameter

Rückgabewert

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

Ausnahmen

Ausnahme Bedingung
ArgumentNullException

Thrown when mediaDataPart is null reference.

ArgumentNullException

Thrown when id is null reference.

InvalidOperationException

Thrown when the specified mediaDataPart is not in this document.

Siehe auch

Referenz

NotesSlidePart Klasse

NotesSlidePart-Member

AddAudioReferenceRelationship Überladung

DocumentFormat.OpenXml.Packaging-Namespace