It is, but ultimately it's going to be a roundabout way, since you will get the Type instance from calling GetType on your instance that exposes the property, and then work on that (more often than not).
In this specific case, your extension method isn't going to be able to get the attribute information because all you are passing to it is a string.
Ultimately, what you need is something to get the PropertyInfo for the property from (which is what other answers lack, they are referring to the Type, and that is not the only way to get at the PropertyInfo, which has the attribute information you want). You can do that by passing a Type instance with a string (with the name of the property, presumably, so you can call GetProperty on the Type).
Another way of doing this since C# 3.0 has been to have a method that takes an Expression<T>
(in this case, you would take an Expression<Func<string>>
or something where TResult is string) and then use the parts of the Expression to get at the PropertyInfo.
Once you have the PropertyInfo, you can call GetCustomAttributes on it, and look for your attribute.
The advantage to the expression approach is that Expression<T>
derives from LambdaExpression, which you can call Compile on and then call to get the actual value, if you need it.