Documentation for: ASP.NET Ajax Version 1.0

This documentation is for a previous version. For the current released version, see the ASP.NET Ajax documentation on MSDN.

 

 

 

 

 

 

 

AddProperty Method (name, value)

Adds the specified property and value.

Syntax

CSharp

public void AddProperty (
	string name,
	Object value
)

VisualBasic

Public Sub AddProperty ( _
	name As String, _
	value As Object _
)

ManagedCPlusPlus

public:
void AddProperty (
	String^ name, 
	Object^ value
)

JSharp

public void AddProperty (
	String name,
	Object value
)

Parameters

name (String)

The name of the property.

value (Object)

The value of the property.

Remarks

This method adds the property and value to the internal dictionary of properties that are converted to client script by the GetScript() method.

Exceptions

ExceptionCondition
ArgumentException

name is null or an empty string ("").

Assembly: System.Web.Extensions (Module: System.Web.Extensions)