V10 Extensibility in Administrator: Error "Classes can inherit only from other classes"

2

I am creating an extension for the V10 Spring Administrator in VB.NET
You are getting the following message associated with the statement:

Inherits clsAplAudit
  

"Classes can inherit only from other classes."

The code I'm writing:

Imports StdClasses100
    Namespace Administrador.VINAudit100

        Public Class clsVINOperacoesAplicacao
            Inherits clsAplAudit

            Private Property Instancia As String
            Private Property Utilizador As String
            Private Property PassWord As String

            Public Function GetArvOperacoes(ByVal objParametros As clsParamOpsAplicacao) As clsArvoreOperacoes
                Dim objOps As clsArvoreOperacoes = New clsArvoreOperacoes()


                AdicionaOperacoes(objOps)

                Return objOps
            End Function

        End Class

    End Namespace

What is missing or is wrong with this code?

    
asked by anonymous 28.09.2018 / 18:38

1 answer

5

The problem is in the use of "Inherits", as this is an interface should use "Implements". Example below

Public Class clsVINOperacoesAplicacao
    Implements StdClasses100.clsAplAudit

    Public Function GetPermissoesDinamicas(objParametros As clsParamOpsAplicacao) As clsPermissoesVar Implements clsAplAudit.GetPermissoesDinamicas

        Throw New NotImplementedException()

    End Function

    Public Function GetArvOperacoes(objParametros As clsParamOpsAplicacao) As clsArvoreOperacoes Implements clsAplAudit.GetArvOperacoes

         Dim objOps As clsArvoreOperacoes = New clsArvoreOperacoes()

         AdicionaOperacoes(objOps)

         Return objOps

    End Function
End Class
    
29.09.2018 / 20:27