Question : MOSS C# Console application - How do I create a document Library

I know how to create a Document Library via Feature but is there a way to create a Document Library in SharepPoint 2007 using C# code?

Note:  I alread have my SPSite and SPWeb objects.  
Note:  I am working using VS.NET 2005 C# Console application.

SPSite site = null;
SPWeb tempWeb = null;
Try
{
   site = new SPSite("http://test:9090/");
   tempWeb = site.RootWeb;
.....
}
catch (Exception ex)
{

}

Answer : MOSS C# Console application - How do I create a document Library

I would recommend you start here:

http://msdn.microsoft.com/en-us/library/ms425818.aspx

This is a link to the SDK that explains exactly how it is done.

Random Solutions  
 
programming4us programming4us