It looks like this example is somewhat out of date. The signatures of a few key methods were changed in order to accommodate the development of the invitation management web service.
Error 83 Overload resolution failed because no accessible 'GetAvailableResponseTemplates' accepts this number of arguments.
<summary>
Gets a <see cref="DataSet"/> of ResponseTemplates available to the logged-in user.
</summary>
<param name="pagesize">The paging size for the returned table.</param>
<param name="page">The page number to return</param>
<param name="filterField">A field to filter by.</param>
<param name="filterText">A string to search the filter field on.</param>
<param name="sortField">A field to sort by.</param>
<param name="descending">bool; whether to sort descending or not.</param>
<param name="permissions">Permissions to check for access to ResponseTemplates.</param>
<returns>A <see cref="DataSet"/> containing one table. </returns>
In order to disable either pageSize or the page you can pass -1.
In order to disable filtering you can pass null.
In order to disable sorting you can pass null.
An example that will produce the same results as the deprecated method is below:
DataSet ds = ResponseTemplateManager.GetAvailableResponseTempla tes(-1, -1, null, null, null, false, permission);
Error 85 Overload resolution failed because no accessible 'GetAvailableEmailLists' accepts this number of arguments.
3. EmailListPanel.GetAvailableEmailLists()
/// <summary>
/// Gets all EmailLists available for use by the principal.
/// </summary>
/// <param name="principal">Principal accessing list</param>
/// <returns>a <see cref="DataSet"/> list of EmailLists available for use by the principal.</returns>
public static DataSet GetAvailableEmailLists(ExtendedPrincipal principal)
Error 86 Value of type 'Checkbox.Security.PermissionJoin' cannot be converted to 'Prezza.Framework.Security.Principal.ExtendedPrinc ipal'.
/// <summary>
/// Get an <see cref="Array"/> of group objects whether principal has
/// the specified permissions.
/// </summary>
/// <param name="currentPrincipal">Principal accessing list</param>
/// <param name="permissionJoinType">When multiple permissions are specified, this parameter allows
/// the caller to specify whether all or any of the permissions must be met.</param>
/// <param name="permissions">Permissions to check against group access lists and default policies.</param>
/// <returns><see cref="Array"/> of user groups.</returns>
public static Group[] GetGroups(ExtendedPrincipal currentPrincipal, PermissionJoin permissionJoinType, params string[] permissions)
|