Changes
Created page with "{{Item/Resources/CodeSnippetHeader}} === Assign a Selective List to a MetaProperty === {{Item/Resources/CodeSnippetInfo|KNO}} <syntaxhighlight lang="csharp"> // MetaProperty..."
{{Item/Resources/CodeSnippetHeader}}
=== Assign a Selective List to a MetaProperty ===
{{Item/Resources/CodeSnippetInfo|KNO}}
<syntaxhighlight lang="csharp">
// MetaProperty
MetaProperty newMetaProp1 = (MetaProperty)mcCUSTOMMETAPROPERTY.CreateNewInstance();
// Selective List
ContentClass contentFileTypes = obj.Environment.UBIKDataFactory().ContentObject(idListFileTypes);
// Set the Selective List property of the meta property 1 to the FileType list
newMetaProp1.TrySetValue<BaseClass>("SELECTIVELIST", contentFileTypes);
newMetaProp1.Save();
</syntaxhighlight>
[[Category:Internal resources]]
=== Assign a Selective List to a MetaProperty ===
{{Item/Resources/CodeSnippetInfo|KNO}}
<syntaxhighlight lang="csharp">
// MetaProperty
MetaProperty newMetaProp1 = (MetaProperty)mcCUSTOMMETAPROPERTY.CreateNewInstance();
// Selective List
ContentClass contentFileTypes = obj.Environment.UBIKDataFactory().ContentObject(idListFileTypes);
// Set the Selective List property of the meta property 1 to the FileType list
newMetaProp1.TrySetValue<BaseClass>("SELECTIVELIST", contentFileTypes);
newMetaProp1.Save();
</syntaxhighlight>
[[Category:Internal resources]]
