HtmlForm.Action 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定 HTML 表單的動作屬性。
public:
property System::String ^ Action { System::String ^ get(); void set(System::String ^ value); };
public string Action { get; set; }
member this.Action : string with get, set
Public Property Action As String
屬性值
HTML 表單的動作屬性。 預設值為 Empty。
備註
當你重寫原始請求的 URL 時會使用這個 Action 屬性,但你想保留 HTML 表單的 action 屬性的原始 URL。 將屬性設定 Action 為你想保留的 URL 值。