文档

Unity Engine

Unity Engine

AddField

Add a simple field to the form.
阅读时间1 分钟最后更新于 21 天前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.UnityWebRequestModule

AddField(string, string)

Add a simple field to the form.
public void AddField(string fieldName, string value)

Parameters

fieldName

The name of the field to add.

value

The string value to assign to the field.

Remarks

Adds field
fieldName
with a given string value.

AddField(string, string, Encoding)

Add a simple field to the form.
public void AddField(string fieldName, string value, Encoding e)

Parameters

fieldName

The name of the field to add.

value

The string value to assign to the field.

The encoding used to convert
value
to bytes.

Remarks

Adds field
fieldName
with a given string value.

AddField(string, int)

Adds a simple field to the form.
public void AddField(string fieldName, int i)

Parameters

fieldName

The name of the field to add.

The integer value to assign to the field.

Remarks

Adds field
fieldName
with a given integer value. A conveinience for calling AddField(fieldName, i.ToString).