VideoSet.CreateVideo method

Creates a new VideoSet object.

Namespace:  Microsoft.Office.DocumentManagement.VideoSets
Assembly:  Microsoft.Office.DocumentManagement (in Microsoft.Office.DocumentManagement.dll)

Syntax

'Declaration
Public Shared Function CreateVideo ( _
    parentFolder As SPFolder, _
    name As String, _
    ctid As SPContentTypeId _
) As String
'Usage
Dim parentFolder As SPFolder
Dim name As String
Dim ctid As SPContentTypeId
Dim returnValue As String

returnValue = VideoSet.CreateVideo(parentFolder, _
    name, ctid)
public static string CreateVideo(
    SPFolder parentFolder,
    string name,
    SPContentTypeId ctid
)

Parameters

  • ctid
    Type: Microsoft.SharePoint.SPContentTypeId

    The ID of the content type to be used for the new VideoSet object to be created. The ID must be for a content type that inherits from the base Video content type.

Return value

Type: System.String
The URL to the new VideoSet object.

Exceptions

Exception Condition
ArgumentNullException

The parentFolder parameter is a null reference (Nothing in Visual Basic).

InvalidOperationException

A folder with the name already exists.

Remarks

This method creates an empty video set container object. It is used for embed code and for external link.

See also

Reference

VideoSet class

VideoSet members

Microsoft.Office.DocumentManagement.VideoSets namespace