AccessPolicyBaseCollection.Create Method
Creates an AccessPolicy with the provided name and permissions, valid for the provided duration.
Namespace: Microsoft.WindowsAzure.MediaServices.Client
Assembly: Microsoft.WindowsAzure.MediaServices.Client (in Microsoft.WindowsAzure.MediaServices.Client.dll)
Syntax
'Declaration
Public Function Create ( _
name As String, _
duration As TimeSpan, _
permissions As AccessPermissions _
) As IAccessPolicy
'Usage
Dim instance As AccessPolicyBaseCollection
Dim name As String
Dim duration As TimeSpan
Dim permissions As AccessPermissions
Dim returnValue As IAccessPolicy
returnValue = instance.Create(name, duration, _
permissions)
public IAccessPolicy Create(
string name,
TimeSpan duration,
AccessPermissions permissions
)
public:
IAccessPolicy^ Create(
String^ name,
TimeSpan duration,
AccessPermissions permissions
)
member Create :
name:string *
duration:TimeSpan *
permissions:AccessPermissions -> IAccessPolicy
public function Create(
name : String,
duration : TimeSpan,
permissions : AccessPermissions
) : IAccessPolicy
Parameters
- name
Type: System.String
Specifies a friendly name for the AccessPolicy.
- duration
Type: System.TimeSpan
Specifies the duration that locators created from this AccessPolicy will be valid for.
- permissions
Type: Microsoft.WindowsAzure.MediaServices.Client.AccessPermissions
Specifies permissions for the created AccessPolicy.
Return Value
Type: Microsoft.WindowsAzure.MediaServices.Client.IAccessPolicy
Returns IAccessPolicy with the provided name, duration, and permissions.