是否可以拥有这样的ActionFilterAttribute参数?
[DataType(DataType.Password)]
例如,我需要创建类似这样的东西
[ValidateSession(Session.Required)]
public class ValidateSession : ActionFilterAttribute
{
enum Session
{
Required,
NotRequired
}
private Session _session { get; set; }
public ValidateSession(Session session)
{
this._session = session;
}
}