JSObject.AddField Method (String)


This API supports the product infrastructure and is not intended to be used directly from your code.

Adds the specified field to the object.

Namespace:   Microsoft.JScript
Assembly:  Microsoft.JScript (in Microsoft.JScript.dll)

public FieldInfo AddField(
	string name


Type: System.String

The name of the field to add.

Return Value

Type: System.Reflection.FieldInfo

The new field, if it is successfully added.

.NET Framework
Available since 1.1
Return to top