ProgramBaseCollection.CreateAsync Method (String, 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.]
Asynchronously 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 CreateAsync ( _
name As String, _
description As String, _
enableArchive As Boolean, _
dvrWindowLength As Nullable(Of TimeSpan), _
estimatedDuration As TimeSpan, _
assetId As String _
) As Task(Of IProgram)
'Usage
Dim instance As ProgramBaseCollection
Dim name As String
Dim description As String
Dim enableArchive As Boolean
Dim dvrWindowLength As Nullable(Of TimeSpan)
Dim estimatedDuration As TimeSpan
Dim assetId As String
Dim returnValue As Task(Of IProgram)
returnValue = instance.CreateAsync(name, _
description, enableArchive, dvrWindowLength, _
estimatedDuration, assetId)
public Task<IProgram> CreateAsync(
string name,
string description,
bool enableArchive,
Nullable<TimeSpan> dvrWindowLength,
TimeSpan estimatedDuration,
string assetId
)
public:
Task<IProgram^>^ CreateAsync(
String^ name,
String^ description,
bool enableArchive,
Nullable<TimeSpan> dvrWindowLength,
TimeSpan estimatedDuration,
String^ assetId
)
member CreateAsync :
name:string *
description:string *
enableArchive:bool *
dvrWindowLength:Nullable<TimeSpan> *
estimatedDuration:TimeSpan *
assetId:string -> Task<IProgram>
public function CreateAsync(
name : String,
description : String,
enableArchive : boolean,
dvrWindowLength : Nullable<TimeSpan>,
estimatedDuration : TimeSpan,
assetId : String
) : Task<IProgram>
Parameters
- name
Type: System.String
Name of the program.
- description
Type: System.String
Program description.
- 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: System.Threading.Tasks.Task<IProgram>
The created program.