View Single Post
  #10 (permalink)  
Old 03-06-2008, 09:49 AM
pwiesner pwiesner is offline
Senior Member
 
Join Date: Mar 2007
Posts: 192
Default

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.


Gets a of ResponseTemplates available to the logged-in user.

The paging size for the returned table.
The page number to return
A field to filter by.
A string to search the filter field on.
A field to sort by.
bool; whether to sort descending or not.
Permissions to check for access to ResponseTemplates.
A containing one table.

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()

///
/// Gets all EmailLists available for use by the principal.
///

/// Principal accessing list
/// a list of EmailLists available for use by the principal.
public static DataSet GetAvailableEmailLists(ExtendedPrincipal principal)



Error 86 Value of type 'Checkbox.Security.PermissionJoin' cannot be converted to 'Prezza.Framework.Security.Principal.ExtendedPrinc ipal'.

///
/// Get an of group objects whether principal has
/// the specified permissions.
///

/// Principal accessing list
/// When multiple permissions are specified, this parameter allows
/// the caller to specify whether all or any of the permissions must be met.
/// Permissions to check against group access lists and default policies.
/// of user groups.
public static Group[] GetGroups(ExtendedPrincipal currentPrincipal, PermissionJoin permissionJoinType, params string[] permissions)
Reply With Quote