ScriptComponentDescriptor.AddProperty(String, Object) Method

Definition

Adds the specified property and value.

public void AddProperty(string name, object value);

Parameters

name
String

The name of the property.

value
Object

The value of the property.

Exceptions

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

Remarks

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

Applies to

Produkt Wersje
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1