SlideMasterPart.AddMediaReferenceRelationship Method

Definition

Overloads

AddMediaReferenceRelationship(MediaDataPart)

Adds a MediaReferenceRelationship to the SlideMasterPart

AddMediaReferenceRelationship(MediaDataPart, String)

Adds a MediaReferenceRelationship to the SlideMasterPart

AddMediaReferenceRelationship(MediaDataPart)

Adds a MediaReferenceRelationship to the SlideMasterPart

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

AddMediaReferenceRelationship(MediaDataPart, String)

Adds a MediaReferenceRelationship to the SlideMasterPart

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