ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript
IScriptObject Interface
IScriptObject Methods
SetProperty Method
SetProperty(Int32, Object) Method
SetProperty(String, Object[]) Method

# IScriptObjectSetProperty(String, Object) Method

Sets the value of a named script object property.
Namespace: Microsoft.ClearScript
Assembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    void SetProperty(
    	string name,
    	params Object[] args
    )

    Sub SetProperty (
    	name As String,
    	ParamArray args As Object()
    )

    void SetProperty(
    	String^ name,
    	... array<Object^>^ args
    )

    abstract SetProperty :
            name : string *
            args : Object[] -> unit

#### Parameters

name String
  The name of the property to set.
args Object
  An array containing optional arguments and the new property value.

Remarks
The args array must contain at least one element. The new property value must be the last element of the array.
See Also

#### Reference

IScriptObject Interface
SetProperty Overload
Microsoft.ClearScript Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft