Specifically, the stuff in the square brackets at the beginning of the class
decl.. How does it apply to the class?

thx.

/// <summary>
/// Data Access Object for Message
/// </summary>
[ Transaction( TransactionOption.Required ) ]
sealed public class DAOMessage : DAOBase
{

Re: What does this mean? by William

William
Thu Feb 05 08:24:59 CST 2004

Like John said, they are attributes which hold metadata about the
method/property etc. They are extremely powerful and you can do a
tremendous amount with them.. Here's an example of using to address a
common security issue
http://www.knowdotnet.com/articles/securityattributes.html
You may want to check out Jason Bock's book on them
http://www.amazon.com/exec/obidos/tg/detail/-/1590591364/qid=1075990797//ref
=sr_8_xs_ap_i2_xgl14/103-2828645-0593415?v=glance&s=books&n=507846
or google on Aspect Oriented Programming for a little more info on them..
"Twitch" <inb4dalockNOSPAM@hotmail.com> wrote in message
news:7csUb.6765$213.1219@edtnps89...
>
> Specifically, the stuff in the square brackets at the beginning of the
class
> decl.. How does it apply to the class?
>
> thx.
>
> /// <summary>
> /// Data Access Object for Message
> /// </summary>
> [ Transaction( TransactionOption.Required ) ]
> sealed public class DAOMessage : DAOBase
> {
>
>



Re: What does this mean? by Twitch

Twitch
Thu Feb 05 09:09:02 CST 2004

Duh, sorry. I double posted. Thankyou Jon & William...


"William Ryan eMVP" <dotnetguru@comcast.nospam.net> wrote in message
news:uU3kQN$6DHA.3308@TK2MSFTNGP11.phx.gbl...
> Like John said, they are attributes which hold metadata about the
> method/property etc. They are extremely powerful and you can do a
> tremendous amount with them.. Here's an example of using to address a
> common security issue
> http://www.knowdotnet.com/articles/securityattributes.html
> You may want to check out Jason Bock's book on them
>
http://www.amazon.com/exec/obidos/tg/detail/-/1590591364/qid=1075990797//ref
> =sr_8_xs_ap_i2_xgl14/103-2828645-0593415?v=glance&s=books&n=507846
> or google on Aspect Oriented Programming for a little more info on them..
> "Twitch" <inb4dalockNOSPAM@hotmail.com> wrote in message
> news:7csUb.6765$213.1219@edtnps89...
> >
> > Specifically, the stuff in the square brackets at the beginning of the
> class
> > decl.. How does it apply to the class?
> >
> > thx.
> >
> > /// <summary>
> > /// Data Access Object for Message
> > /// </summary>
> > [ Transaction( TransactionOption.Required ) ]
> > sealed public class DAOMessage : DAOBase
> > {
> >
> >
>
>