次の方法で共有


HtmlDocument.Submit Method (String)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Posts user data from the specified FORM element to the server.

Namespace:  System.Windows.Browser
Assembly:  System.Windows.Browser (in System.Windows.Browser.dll)

Syntax

'Declaration
Public Sub Submit ( _
    formId As String _
)
public void Submit(
    string formId
)

Parameters

  • formId
    Type: System.String
    The value of the id attribute for an HTML FORM element.

Exceptions

Exception Condition
ArgumentException

formId is an empty string.

ArgumentNullException

formId is nulla null reference (Nothing in Visual Basic).

InvalidOperationException

An unexpected error occurred.

Remarks

This overload posts user data from an HTML FORM element that is identified by the formId parameter. For example, if your HTML document has an element defined as <form id="xyz" />, you can submit its user data by calling HtmlDocument.Submit("xyz").

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.