How do I limit the posible options to be assign to a .net property

Posted by carlos on Stack Overflow See other posts from Stack Overflow or by carlos
Published on 2010-05-05T20:17:26Z Indexed on 2010/05/05 20:18 UTC
Read the original article Hit count: 167

Filed under:

Hello how can I have like a catalog for a property in .net VB .. I mean if i have

Property funcion(ByVal _funcion As Int16) As Int16

        Get
            Return _funcion
        End Get

        Set(ByVal value As Int16)
            _funcion = value
        End Set

End Property

I want to be able to assign to this property a limited number of options.

Example .. Dim a as trick (the class )

a.funcion = (and get a list of possible attributes) ...

Thanks !!!

© Stack Overflow or respective owner

Related posts about vb.net