612 bytes added,
16:13, 20 May 2015 {{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]]