I have a custom Attribute called AuthoriseAttribute whose constructor looks like this:
public AuthoriseAttribute(int userId) { .. blah }
This
Probably because this is an old post but this is now possible
[MyAttribute(MyAttributeVar= "myMethodVar")] public void MyMethod(int myMethodVar)