ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript
HostFunctions Class
HostFunctions Methods
getProperty Method
getProperty(IDynamicMetaObjectProvider, String) Method
getProperty(IPropertyBag, String) Method

# HostFunctionsgetProperty(IPropertyBag, String) Method

Gets the value of a property in a dynamic host object that implements IPropertyBag.
Namespace: Microsoft.ClearScript
Assembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    public Object getProperty(
    	IPropertyBag target,
    	string name
    )

    Public Function getProperty (
    	target As IPropertyBag,
    	name As String
    ) As Object

    public:
    Object^ getProperty(
    	IPropertyBag^ target,
    	String^ name
    )

    member getProperty :
            target : IPropertyBag *
            name : string -> Object

#### Parameters

target IPropertyBag
  The dynamic host object that contains the property to get.
name String
  The name of the property to get.

#### Return Value

Object
The value of the specified property.
Remarks
This function is provided for script languages that do not support dynamic properties.
See Also

#### Reference

HostFunctions Class
getProperty Overload
Microsoft.ClearScript Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft