Hi everyone,
what is the syntax for NULL if u guys know of any..
Cache.Add("ProductsTable", s, null, DateTime.Now.AddSeconds(60),
TimeSpan.Zero, CacheItemPriority.High, null)
i tried writing the code as u can see above, but when i put my mouse
pointer over the blue curly underline on the word "null", it says:-
" 'null' is not declared. 'Null' constant is no longer supported; use
'System.DBNull' instead. "
Then, when i replace the word "null" with 'System.DBNull',
it says:-
" 'DBNull' is a type in 'System' and cannot be used as an expression. "
So what am i supposed to use for a NULL object?
Thanks guys =)
Scott M. - 06 May 2005 14:55 GMT
In VB.NET it is: Nothing
Cache.Add("ProductsTable", s, Nothing, DateTime.Now.AddSeconds(60),
TimeSpan.Zero, CacheItemPriority.High, Nothing)
> Hi everyone,
>
[quoted text clipped - 19 lines]
>
> *** Sent via Developersdex http://www.developersdex.com ***
xianxian chan - 09 May 2005 03:19 GMT
hi scott
thank you very much =)
hope u'll have a nice dae =)
regards,
xianxian
Scott M. - 09 May 2005 21:58 GMT
u2
> hi scott
>
[quoted text clipped - 6 lines]
>
> *** Sent via Developersdex http://www.developersdex.com ***