ActiveReports 12 Server User Guide
CreatePolicy Method

ActiveReports.Server.ReportControls Assembly > ActiveReports.Server.ReportServices.Servicing Namespace > IDesignerService Interface : CreatePolicy Method
The security token to use.
The target id.
Name of the policy.
Type of the policy: schedule, cache or so on.
Id of related shared policy template.
Creates a policy for the specified target.
Syntax
'Declaration
 
Function CreatePolicy( _
   ByVal token As String, _
   ByVal targetId As String, _
   ByVal policyName As String, _
   ByVal policyType As PolicyType, _
   ByVal sharedPolicyTemplateId As String _
) As PolicyResult

Parameters

token
The security token to use.
targetId
The target id.
policyName
Name of the policy.
policyType
Type of the policy: schedule, cache or so on.
sharedPolicyTemplateId
Id of related shared policy template.

Return Value

The policy.
See Also

Reference

IDesignerService Interface
IDesignerService Members