Question

Subsonic 2.2 jette l'erreur

subsonic Invalid cast from System.Int32 to System.Byte[]

Quand je fais ce qui suit

        If template.Content Is Nothing Then
            MsgBox("Blank Document")
        Else
            MsgBox("Document Present")
        End If

« template » est un objet SubSonic dont il est champ « contenu » est du type octet ()

Pourquoi est-ce

Était-ce utile?

La solution

L'objet SubSonic a été initialisé correctement.

Solution

Dim template as New TemplateDocument(Guid.NewID()) with {.content = Nothing}
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top