TaxonomyFieldControl.GetTaxonomyCollection(String) TaxonomyFieldControl.GetTaxonomyCollection(String) TaxonomyFieldControl.GetTaxonomyCollection(String) Method

Definition

Converts a string to a TaxonomyFieldValueCollection object,

public:
 static Microsoft::SharePoint::Taxonomy::TaxonomyFieldValueCollection ^ GetTaxonomyCollection(System::String ^ text);
public static Microsoft.SharePoint.Taxonomy.TaxonomyFieldValueCollection GetTaxonomyCollection (string text);
Public Shared Function GetTaxonomyCollection (text As String) As TaxonomyFieldValueCollection
Parameters
text
String String String

String to be converted into a TaxonomyFieldValueCollection object.

Returns

Remarks

The string that is passed in must be formatted with a label and its GUID must be delimited with a | character. You can repeat the format more than one time and delimit it with a ; character,

This method can also be used with a full GUID path. For example, if you have the Term object named X with the GUID 12345678-1234-1234-1234-123456789012, and you have the parent Term named Y at the root of the TermSet object with the GUID 87654321-4321-4321-4321-210987654321, you can use either of the following values: X|12345678-1234-1234-1234-123456789012, or X|87654321-4321-4321-4321-210987654321|123456789-1234-1234-1234-123456789012.

Applies to