ActiveReports 8 Server SDK
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.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IDesignerService Interface
IDesignerService Members

 

 


Copyright © 2015 GrapeCity, inc. All Rights Reserved.

Support Forum