Share via


SlidePart.AddMediaReferenceRelationship Method

Definition

Overloads

AddMediaReferenceRelationship(MediaDataPart, String)

Adds a MediaReferenceRelationship to the SlidePart

AddMediaReferenceRelationship(MediaDataPart)

Adds a MediaReferenceRelationship to the SlidePart

AddMediaReferenceRelationship(MediaDataPart, String)

Adds a MediaReferenceRelationship to the SlidePart

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

Parameters

mediaDataPart
MediaDataPart

The part type of the MediaReferenceRelationship

id
String

The relationship id

Returns

The new MediaReferenceRelationship.

Exceptions

Thrown when id is null.

Thrown when the specified mediaDataPart is not in this document.

Applies to

AddMediaReferenceRelationship(MediaDataPart)

Adds a MediaReferenceRelationship to the SlidePart

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

Parameters

mediaDataPart
MediaDataPart

The part type of the MediaReferenceRelationship

Returns

The new MediaReferenceRelationship.

Exceptions

Thrown when mediaDataPart is null.

Thrown when the specified mediaDataPart is not in this document.

Applies to