MailToExtensions.Mailto Method (HtmlHelper, String, String, Object)

Mails to the specified extensions using the helper, link text, email address and html attributes.

Namespace:  Microsoft.Web.Mvc
Assembly:  Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function Mailto ( _
    helper As HtmlHelper, _
    linkText As String, _
    emailAddress As String, _
    htmlAttributes As Object _
) As MvcHtmlString
'Usage
Dim helper As HtmlHelper 
Dim linkText As String 
Dim emailAddress As String 
Dim htmlAttributes As Object 
Dim returnValue As MvcHtmlString 

returnValue = helper.Mailto(linkText, _
    emailAddress, htmlAttributes)
public static MvcHtmlString Mailto(
    this HtmlHelper helper,
    string linkText,
    string emailAddress,
    Object htmlAttributes
)
[ExtensionAttribute]
public:
static MvcHtmlString^ Mailto(
    HtmlHelper^ helper, 
    String^ linkText, 
    String^ emailAddress, 
    Object^ htmlAttributes
)
static member Mailto : 
        helper:HtmlHelper * 
        linkText:string * 
        emailAddress:string * 
        htmlAttributes:Object -> MvcHtmlString
public static function Mailto(
    helper : HtmlHelper, 
    linkText : String, 
    emailAddress : String, 
    htmlAttributes : Object
) : MvcHtmlString

Parameters

Return Value

Type: System.Web.Mvc.MvcHtmlString
Mails to the specified extensions.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type HtmlHelper. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.118) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.118).

See Also

Reference

MailToExtensions Class

Mailto Overload

Microsoft.Web.Mvc Namespace