Declarative Security, using multiple attributes OR'd together.
From: TL (tom_laramee_at_yahoo.com)
Date: 07/21/03
- Next message: cppdev: "Block ciphers and calculating encrypted total size"
- Previous message: Michel Gallant: "Re: Public Key encoding in .NET"
- Next in thread: Eugene V. Bobukh [MS]: "Re: Declarative Security, using multiple attributes OR'd together."
- Reply: Eugene V. Bobukh [MS]: "Re: Declarative Security, using multiple attributes OR'd together."
- Reply: Shel Blauman [MSFT]: "Re: Declarative Security, using multiple attributes OR'd together."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 21 Jul 2003 12:22:00 -0700
hi:
i'm using declarative security in a C# application, eg:
[RolePermission(SecurityAction.Demand, Role="MyRole1")]
private void Page_Load(object sender, System.EventArgs e)
{
...
}
i was wondering what the syntax is for OR'ing 2 (or more)
of these declarations together, something like:
[RolePermission(SecurityAction.Demand, Role="MyRole1" | "MyRole2" )]
private void Page_Load(object sender, System.EventArgs e)
{
...
}
so that no exception is thrown if the user has either of
the roles.
thanks!
- Next message: cppdev: "Block ciphers and calculating encrypted total size"
- Previous message: Michel Gallant: "Re: Public Key encoding in .NET"
- Next in thread: Eugene V. Bobukh [MS]: "Re: Declarative Security, using multiple attributes OR'd together."
- Reply: Eugene V. Bobukh [MS]: "Re: Declarative Security, using multiple attributes OR'd together."
- Reply: Shel Blauman [MSFT]: "Re: Declarative Security, using multiple attributes OR'd together."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|