TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Get the Term Group from current site using Server Side object model
Prasham Sabadra
Apr 11
2015
Code
1.2
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
Group group=
null
;
_siteId = SPContext.Current.Site.ID;
using
(SPSite site =
new
SPSite(_siteId))
{
TaxonomySession taxonomySession =
new
TaxonomySession((SPSite)site);
if
(taxonomySession.TermStores.Count != 0)
{
TermStore termStore = taxonomySession.TermStores[0];
//default term store
group = termStore.Groups[
"group name"
];
}
}
Getting the Group
Term Group