நீங்கள் கிடைத்தால் “பயன்பாட்டு தள உள்ளடக்க வகை” பிழை உள்ளடக்க வகை நீக்கும் போது.
பட்டியல் / நூலகம் இயல்புநிலை உள்ளடக்கத்தை வகை மாற்ற, இந்த உள்ளடக்கத்தை வகை பயன்படுத்துகிறது.
பின்னர் உள்ளடக்க வகை நீக்க முயற்சி.
|
||||||
பயன்பாட்டு தள உள்ளடக்க வகை - பிழை உள்ளடக்க வகை நீக்குகிறது போதுநீங்கள் கிடைத்தால் “பயன்பாட்டு தள உள்ளடக்க வகை” பிழை உள்ளடக்க வகை நீக்கும் போது.
பட்டியல் / நூலகம் இயல்புநிலை உள்ளடக்கத்தை வகை மாற்ற, இந்த உள்ளடக்கத்தை வகை பயன்படுத்துகிறது. பின்னர் உள்ளடக்க வகை நீக்க முயற்சி. 2 comments to Site Content Type in Use – Error while Deleting Content Typeஒரு பதில் விடவும் |
||||||
பதிப்புரிமை © 2024 MSTechBlogs - அனைத்து உரிமைகளும் பாதுகாக்கப்பட்டவை மூலம் இயக்கப்படுகிறது வேர்ட்பிரஸ் & கட்ட |
How to find in which libraries this content type is used?
Refer to the discussion in my forum :
http://www.mstechblogs.com/Forums/viewtopic.php?f=8&p=12&sid=cee7f065bed1fc88d9759c66b373d4dd#p12
You can use Object Model to find :
அமைப்பு பயன்படுத்தி;
தங்கையின் பயன்படுத்தி;
Microsoft.SharePoint பயன்படுத்தி;
namespace Test
{
class ConsoleApp
{
static void Main(சரம்[] args)
{
பயன்படுத்தி (SPSite siteCollection = new SPSite(“http://லோக்கல் ஹோஸ்ட்”))
{
பயன்படுத்தி (SPWeb webSite = siteCollection.OpenWeb())
{
// Get the obsolete content type.
SPContentType obsolete = webSite.ContentTypes[“Test”];
என்றால் (obsolete != பூஜ்ய) // We have a content type. usages = SPContentTypeUsage.GetUsages(obsolete);
{
IList
என்றால் (usages.Count > 0) // It is in use.
{
Console.WriteLine(“The content type is in use in the following locations:”);
foreach (SPContentTypeUsage usage in usages)
Console.WriteLine(usage.Url);
}
வேறு // The content type is not in use.
{
// Delete it.
Console.WriteLine(“Deleting content type {0}…”, obsolete.Name);
webSite.ContentTypes.Delete(obsolete.Id);
}
}
வேறு // No content type found.
{
Console.WriteLine(“The content type does not exist in this site collection.”);
}
}
}
Console.Write(“\nPress ENTER to continue…”);
Console.ReadLine();
}
}
}
Other Option would be using SQL query (beware its bit risky)
SELECT *
FROM AllUserData
WHERE (tp_DirName LIKE ‘%’)
AND ((tp_ContentType = ‘Document’) and tp_ListId=’C8723B19-0DAB-4F19-B195-3399D5375752′)
You will find items referenced by content type. Delete this referenced items using query below.
DELETE
FROM AllUserData
WHERE (tp_DirName LIKE ‘%’)
AND ((tp_ContentType = ‘Document’) and tp_ListId=’C8723B19-0DAB-4F19-B195-3399D5375752′)