次の方法で共有


WordprocessingCommentsPart.AddVideoReferenceRelationship Method (MediaDataPart, String)

Adds a new VideoReferenceRelationship to the specified MediaDataPart.

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

Syntax

'宣言
Public Function AddVideoReferenceRelationship ( _
    mediaDataPart As MediaDataPart, _
    id As String _
) As VideoReferenceRelationship
'使用
Dim instance As WordprocessingCommentsPart
Dim mediaDataPart As MediaDataPart
Dim id As String
Dim returnValue As VideoReferenceRelationship

returnValue = instance.AddVideoReferenceRelationship(mediaDataPart, _
    id)
public VideoReferenceRelationship AddVideoReferenceRelationship(
    MediaDataPart mediaDataPart,
    string id
)

Parameters

Return Value

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

Exceptions

Exception Condition
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.

See Also

Reference

WordprocessingCommentsPart Class

WordprocessingCommentsPart Members

AddVideoReferenceRelationship Overload

DocumentFormat.OpenXml.Packaging Namespace