Hello,
I have a property which type is Mail.MailAddress.
I need to set a default value.
This is what I tried:
Private _From As Mail.MailAddress
<DefaultValue(New Mail.MailAddress("ma**@domain.com", "Name"))_
Public Property From() As Mail.MailAddress
Get
Return _From
End Get
Set(ByVal value As Mail.MailAddress)
_From = value
End Set
End Property
I get an error:
"Constant Expression is Required"
How can I solve this?
Thanks,
Miguel