AddDynamicTag
Adds an item in a Dynamic Tag
Syntax:
Int32 AddDynamicTag(String tagName,String property,ScriptVar value);
Int32 AddDynamicTag(String tagName,Dictionary`2 properties);
Int32 AddDynamicTag(String tagName);
Params:
String tagName: A String parameter containing the name of the tag.
String property: A String parameter containing the name of the property.
ScriptVar value: A ScriptVar parameter containing the value that will be set in the property parameter.
Dictionary properties: A Dictionary parameter containing pairs of properties and values for the tag.
Example:
Add an item to "TagDynamic", setting the value "Test" in the "Description" property.
PHITag.AddDynamicTag("TagDynamic", "Description", "Test");
|
Add an item to Integer "TagDynamic", setting the value "Test" in the "Description" property and 100 in the "Value" property.
System.Collections.Generic.Dictionary<string, ScriptVar> dic = new System.Collections.Generic.Dictionary<string, ScriptVar>(); dic.Add("Description", "Test"); dic.Add("Value", 100); PHITag.AddDynamicTag("TagDynamic", dic);
|
Add an item to "TagDynamic".
PHITag.AddDynamicTag("TagDynamic");
|