See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.
There are also methods to save to a .xml file and retrieve from the .xml file. (Thanks, RonaldBiemans, for the original code.)
<Serializable()> _ Public Class Options ' System options Public blnDisplayExcel As Boolean Public strUserCategory1 As String Public strUserCategory2 As String Public strUserCategory3 As String Public strUserCategory4 As String End Class
(The OptionalField attribute is there so deserializing the class with a new option doesn't generate an exception.) This gives the same "Object reference not set..." exception when I execute the Set code.
<System.Runtime.Serialization.OptionalField()> Private pstrUserCategory(20) As String Public Property strUserCategory(ByVal i As Integer) As String Get If i < 1 Or i > 20 Then Throw New Exception("Out of range 1-20") Else Return pstrUserCategory(i) End If End Get Set(ByVal value As String) pstrUserCategory(i) = value End Set End Property
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
11 Experts available now in Live!