LocatorBaseCollection.CreateSasLocator Method (IAsset, IAccessPolicy)
Creates a SAS Locator with the specified access policy and asset.
Namespace: Microsoft.WindowsAzure.MediaServices.Client
Assembly: Microsoft.WindowsAzure.MediaServices.Client (in Microsoft.WindowsAzure.MediaServices.Client.dll)
Syntax
'Declaration
Public Function CreateSasLocator ( _
asset As IAsset, _
accessPolicy As IAccessPolicy _
) As ILocator
'Usage
Dim instance As LocatorBaseCollection
Dim asset As IAsset
Dim accessPolicy As IAccessPolicy
Dim returnValue As ILocator
returnValue = instance.CreateSasLocator(asset, _
accessPolicy)
public ILocator CreateSasLocator(
IAsset asset,
IAccessPolicy accessPolicy
)
public:
ILocator^ CreateSasLocator(
IAsset^ asset,
IAccessPolicy^ accessPolicy
)
member CreateSasLocator :
asset:IAsset *
accessPolicy:IAccessPolicy -> ILocator
public function CreateSasLocator(
asset : IAsset,
accessPolicy : IAccessPolicy
) : ILocator
Parameters
- asset
Type: Microsoft.WindowsAzure.MediaServices.Client.IAsset
The asset to create a SAS Locator for.
- accessPolicy
Type: Microsoft.WindowsAzure.MediaServices.Client.IAccessPolicy
The AccessPolicy that governs access for the locator.
Return Value
Type: Microsoft.WindowsAzure.MediaServices.Client.ILocator
A function delegate that returns the future result to be available through the Task<ILocator>.