LocatorBaseCollection.CreateLocator Method (LocatorType, IAsset, IAccessPolicy, Nullable<DateTime>, String)
Creates the locator.
Namespace: Microsoft.WindowsAzure.MediaServices.Client
Assembly: Microsoft.WindowsAzure.MediaServices.Client (in Microsoft.WindowsAzure.MediaServices.Client.dll)
Syntax
'Declaration
Public Function CreateLocator ( _
locatorType As LocatorType, _
asset As IAsset, _
accessPolicy As IAccessPolicy, _
startTime As Nullable(Of DateTime), _
name As String _
) As ILocator
'Usage
Dim instance As LocatorBaseCollection
Dim locatorType As LocatorType
Dim asset As IAsset
Dim accessPolicy As IAccessPolicy
Dim startTime As Nullable(Of DateTime)
Dim name As String
Dim returnValue As ILocator
returnValue = instance.CreateLocator(locatorType, _
asset, accessPolicy, startTime, name)
public ILocator CreateLocator(
LocatorType locatorType,
IAsset asset,
IAccessPolicy accessPolicy,
Nullable<DateTime> startTime,
string name
)
public:
ILocator^ CreateLocator(
LocatorType locatorType,
IAsset^ asset,
IAccessPolicy^ accessPolicy,
Nullable<DateTime> startTime,
String^ name
)
member CreateLocator :
locatorType:LocatorType *
asset:IAsset *
accessPolicy:IAccessPolicy *
startTime:Nullable<DateTime> *
name:string -> ILocator
public function CreateLocator(
locatorType : LocatorType,
asset : IAsset,
accessPolicy : IAccessPolicy,
startTime : Nullable<DateTime>,
name : String
) : ILocator
Parameters
- locatorType
Type: Microsoft.WindowsAzure.MediaServices.Client.LocatorType
Type of the locator.
- asset
Type: Microsoft.WindowsAzure.MediaServices.Client.IAsset
The asset.
- accessPolicy
Type: Microsoft.WindowsAzure.MediaServices.Client.IAccessPolicy
The access policy.
- startTime
Type: System.Nullable<DateTime>
The start time.
- name
Type: System.String
The locator name.
Return Value
Type: Microsoft.WindowsAzure.MediaServices.Client.ILocator
Returns ILocator.