Jump to: navigation, search

Changes


Internal:Assign Selective List To MetaProperty

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