Prev   Next

Back to the top of the FAQ

Q. GroupAddNewUser - how do I make the expiration zero or null?
A.

I want to replace the last argument with a zero so the user doesn't expire, but VS.NET insists that this last argument has to be of type System.DateTime which doesn't allow null values, and won't convert from an integer.

I actually managed to work out how to make a zero expiry - I used DateTime.FromOADate(0) and it seems to work just fine. The only other thing I noticed using .NET is that the 'optional' arguments for the method (Description, Expiry) aren't optional - you have to enter all the parameters, but I think that's fine for what I need so far.

Thanks Mike Taylor!

Back to the top of the FAQ

Prev   Next