S
shapper
Hello,
I am trying to create a custom email class but this one is the first
class I create.
Where can I find some tips of how to create classes?
I have various problems. For example, there are properties which, when
not defined by the user it won't be used on my code:
Public WriteOnly Property Priority() As System.Net.Mail.MailPriority
Set(ByVal value As System.Net.Mail.MailPriority)
If _Priority = value Then
Return
End If
_Priority = value
End Set
End Property
Is the user doesn't set Priority then in my function I will not have:
email.Priority = ...
Of course I could use an IF condition around "email.Priority = ..." but
I am not sure if that's the way.
Thanks,
Miguel
I am trying to create a custom email class but this one is the first
class I create.
Where can I find some tips of how to create classes?
I have various problems. For example, there are properties which, when
not defined by the user it won't be used on my code:
Public WriteOnly Property Priority() As System.Net.Mail.MailPriority
Set(ByVal value As System.Net.Mail.MailPriority)
If _Priority = value Then
Return
End If
_Priority = value
End Set
End Property
Is the user doesn't set Priority then in my function I will not have:
email.Priority = ...
Of course I could use an IF condition around "email.Priority = ..." but
I am not sure if that's the way.
Thanks,
Miguel