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
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Roger Da
NA
26
429
CSOM Library of ContentType or Get list of ContentTypes of a Library
Apr 15 2021 4:22 PM
I can easily get a list of Libraries
I can easily get a list of all ContentTypes
But having trouble getting a list if libraries and what contenttypes belong to that library.
Can anyone assist wtih this request? We utilize a library and have a small list of content types in a library.
Thanks in advance.
This gets me the list of Libraries.
List<
string
> sOut =
new
List<
string
>();
var context =
new
ClientContext(url);
context.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials;
var web = context.Web;
ListCollection collList = web.Lists;
context.Load(collList);
context.ExecuteQuery();
foreach
(List oList
in
collList)
{
Console.WriteLine(
"Title: {0} Created: {1}"
, oList.Title, oList.Created.ToString());
}
Reply
Answers (
2
)
Microsoft.EntityFrameworkCore.Database.Transaction: Error
XML DATA Need to store in db and Create table and Data types