Cadernos de Questões

Provas Favoritas

Filtros Salvos

Foram encontradas 100 questões.
#1722786

No ASP.NET MVC 5, para que um auxiliar de HTML personalizado (Custom HTML Helper) possa ser invocado como @Html.Quoted("texto"), ele deve ser declarado como:

  • Public Shared Class MyExtension     Public Shared Function Quoted(         this ByVal helper As HtmlHelper,         ByVal text As String         ) As String         Return """" & text & """"     End Function End Class
  • Public Module MyExtension         Public Function Quoted(         ByVal helper As HtmlHelper,         ByVal text As String     ) As String         Return """" & text & """"     End Function End Module
  • Imports System.Runtime.CompilerServices Public Module MyExtension          Public Shared Function Quoted(     this helper As HtmlHelper,     ByVal text As String )     As String     Return """" & text & """"      End Function End Module
  • Imports System.Runtime.CompilerServices Public Module MyExtension          Public Function Quoted(     ByVal helper As HtmlHelper,     ByVal text As String     ) As String         Return """" & text & """"     End Function End Module
  • Imports System.Runtime.CompilerServices Public Class MyExtension          Public Shared Function Quoted(     ByVal helper As HtmlHelper,     ByVal text As String )    As String     Return """" & text & """"      End Function End Class
Fale com IAgo
IAgo - Assistente IAProva
IA
Olá! Sou o IAgo, seu assistente aqui no IAProvatec 😊
Veja como posso te ajudar:
Agora