Partager via


SlideLayoutPart.AddMediaReferenceRelationship Méthode

Définition

Surcharges

AddMediaReferenceRelationship(MediaDataPart)

Ajoute un MediaReferenceRelationship au SlideLayoutPart

AddMediaReferenceRelationship(MediaDataPart, String)

Ajoute un MediaReferenceRelationship au SlideLayoutPart

AddMediaReferenceRelationship(MediaDataPart)

Ajoute un MediaReferenceRelationship au SlideLayoutPart

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

Paramètres

mediaDataPart
MediaDataPart

Type de composant de MediaReferenceRelationship

Retours

MediaReferenceRelationshipNouveau .

Exceptions

Levée quand mediaDataPart a la valeur null.

Levée lorsque le spécifié mediaDataPart n’est pas dans ce document.

S’applique à

AddMediaReferenceRelationship(MediaDataPart, String)

Ajoute un MediaReferenceRelationship au SlideLayoutPart

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

Paramètres

mediaDataPart
MediaDataPart

Type de composant de MediaReferenceRelationship

id
String

ID de relation

Retours

MediaReferenceRelationshipNouveau .

Exceptions

Levée quand id a la valeur null.

Levée lorsque le spécifié mediaDataPart n’est pas dans ce document.

S’applique à