Domanda

Ho un web part che devono avere la propria libreria di documenti. C'è un modo per me di controllare per vedere se quella biblioteca documento esiste e se non crearlo, quando è installato il WSP?

È stato utile?

Soluzione

Yes, you would do this via a Feature Receiver for the Feature that deploys the web part.

For more information on creating a Feature Receiver see: http://msdn.microsoft.com/en-us/library/ff872401.aspx#InsideSP14_Ch3_AAFR

Here's a simple example that shows how to create a document library in code: http://www.eblogin.com/eblogin/post/2011/03/15/sp-CreateDocLibrary.aspx

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a sharepoint.stackexchange
scroll top