Share via


TaxonomyItemPicker.GetSelectedObject method

Returns the taxonomy object represented by the following GUID properties: TermStoreId, GroupId, TermSetId, TermId.

Namespace:  Microsoft.SharePoint.Taxonomy
Assembly:  Microsoft.SharePoint.Taxonomy (in Microsoft.SharePoint.Taxonomy.dll)

Syntax

'Declaration
Public Function GetSelectedObject ( _
    taxonomySession As TaxonomySession _
) As Object
'Usage
Dim instance As TaxonomyItemPicker
Dim taxonomySession As TaxonomySession
Dim returnValue As Object

returnValue = instance.GetSelectedObject(taxonomySession)
public Object GetSelectedObject(
    TaxonomySession taxonomySession
)

Parameters

Return value

Type: System.Object
A taxonomy object if a valid one is selected; otherwise, a null reference (Nothing in Visual Basic) if no object is selected, or the selected object is not valid.

See also

Reference

TaxonomyItemPicker class

TaxonomyItemPicker members

Microsoft.SharePoint.Taxonomy namespace