Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

[UWP][VB]Design Time Parameter Validation Using Attributes

$
0
0
I am new to creating custom attributes, and would like to create an attribute that will make sure a parameter is within a specified range. I know how to create a custom attribute, which in this case would accept parameters for the minimum and maximum values for the range. But I do not know how to make Visual Studio display an error, warning, or other message when the parameter is outside the specified range. Is there a way to do this? Any help would be appreciated. Thanks.

Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>