the R# data object with specific element data type
RsharpDataObject
01 Syntax
SMRUCC.Rsharp.Runtime.Components.RsharpDataObject
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| getAttribute | 1 | get attribute value by name |
| setAttribute | 1 | tag a named attribute data with current R# runtime object |
| getAttributeNames | 1 | Get all attribute name that tagged with current symbol object. |
| ToString | 1 |
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| elementType | 1 | get the element type of this R# runtime object |
04 Fields
| Name | Overloads | Summary |
|---|---|---|
| m_attributes | 1 | holds the custom attribute data that tagged with current R# runtime object this dictionary object value is created in lazy mode |
05 Members
getAttribute(
String, Object)get attribute value by name
Parameters
| Name | Type | Description |
|---|---|---|
name | String | - |
[default] | Object | - |
setAttribute(
String, Object)tag a named attribute data with current R# runtime object
Remarks
this function will create a new dictionary object if the attribute data is not initialized
Parameters
| Name | Type | Description |
|---|---|---|
name | String | - |
val | Object | - |
Returns
this function returns the object itself for the chaining call
Example
Dim obj As New RsharpDataObject
obj.setAttribute("name", "value")
getAttributeNames
Get all attribute name that tagged with current symbol object.
elementType
get the element type of this R# runtime object
m_attributes
holds the custom attribute data that tagged with current R# runtime object this dictionary object value is created in lazy mode
ToString()