Share via


ProgramBaseCollection.Create Method (String, Boolean, Nullable<TimeSpan>, TimeSpan, String)

[This topic is pre-release documentation and is subject to change in future releases. Participation in the preview is limited to invitees only. For more information, see the Release Notes.]

Creates new Program.

Namespace:  Microsoft.WindowsAzure.MediaServices.Client
Assembly:  Microsoft.WindowsAzure.MediaServices.Client.Live (in Microsoft.WindowsAzure.MediaServices.Client.Live.dll)

Syntax

'Declaration
Public Function Create ( _
    name As String, _
    enableArchive As Boolean, _
    dvrWindowLength As Nullable(Of TimeSpan), _
    estimatedDuration As TimeSpan, _
    assetId As String _
) As IProgram
'Usage
Dim instance As ProgramBaseCollection 
Dim name As String 
Dim enableArchive As Boolean 
Dim dvrWindowLength As Nullable(Of TimeSpan)
Dim estimatedDuration As TimeSpan 
Dim assetId As String 
Dim returnValue As IProgram 

returnValue = instance.Create(name, enableArchive, _
    dvrWindowLength, estimatedDuration, _
    assetId)
public IProgram Create(
    string name,
    bool enableArchive,
    Nullable<TimeSpan> dvrWindowLength,
    TimeSpan estimatedDuration,
    string assetId
)
public:
IProgram^ Create(
    String^ name, 
    bool enableArchive, 
    Nullable<TimeSpan> dvrWindowLength, 
    TimeSpan estimatedDuration, 
    String^ assetId
)
member Create : 
        name:string * 
        enableArchive:bool * 
        dvrWindowLength:Nullable<TimeSpan> * 
        estimatedDuration:TimeSpan * 
        assetId:string -> IProgram
public function Create(
    name : String, 
    enableArchive : boolean, 
    dvrWindowLength : Nullable<TimeSpan>, 
    estimatedDuration : TimeSpan, 
    assetId : String
) : IProgram

Parameters

  • enableArchive
    Type: System.Boolean
    True if the program must be archived.
  • dvrWindowLength
    Type: System.Nullable<TimeSpan>
    Length of the DVR window. Set to StreamingConstants.InfiniteDvrLenth for infinite DVR.
  • estimatedDuration
    Type: System.TimeSpan
    Estimated duration of the program.
  • assetId
    Type: System.String
    Id of the asset where program content will be stored.

Return Value

Type: Microsoft.WindowsAzure.MediaServices.Client.IProgram
The created program.

See Also

Reference

ProgramBaseCollection Class

Create Overload

Microsoft.WindowsAzure.MediaServices.Client Namespace