LocatorCollection.CreateSasLocator Method (IAsset, IAccessPolicy)

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

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)

Usage

'Usage
Dim instance As LocatorCollection
Dim asset As IAsset
Dim accessPolicy As IAccessPolicy
Dim returnValue As ILocator

returnValue = instance.CreateSasLocator(asset, accessPolicy)

Syntax

'Declaration
Public Function CreateSasLocator ( _
    asset As IAsset, _
    accessPolicy As IAccessPolicy _
) As ILocator
public ILocator CreateSasLocator (
    IAsset asset,
    IAccessPolicy accessPolicy
)
public:
ILocator^ CreateSasLocator (
    IAsset^ asset, 
    IAccessPolicy^ accessPolicy
)
public ILocator CreateSasLocator (
    IAsset asset, 
    IAccessPolicy accessPolicy
)
public function CreateSasLocator (
    asset : IAsset, 
    accessPolicy : IAccessPolicy
) : ILocator

Parameters

  • asset
    The asset to create a SAS locator for.
  • accessPolicy
    The access policy that governs access for the locator.

Return Value

A locator granting access specified by accessPolicy to the provided asset.

Exceptions

Exception type Condition
ArgumentNullException

asset

ArgumentNullException

accessPolicy

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows 7, Windows Server 2008, Windows 8 Beta

Target Platforms

See Also

Reference

LocatorCollection Class
LocatorCollection Members
Microsoft.WindowsAzure.MediaServices.Client Namespace

Build Date:

2012-06-07