RootWeb: ISharePointWeb;
None
The RootWeb method initializes new connection to the SharePoint sight and returns the content of the upper level of the site.
Executing the example requires the SharePoint site located by the http://test-sharepoint address.
Sub UserProc;
Var
Site: ISharePointSite;
Cred: INetNetworkCredential;
Web: ISharePointWeb;
Begin
Site := New SharePointSite.Create;
Site.Url := "http://test-sharepoint";
//Credentials for login
Cred := New NetNetworkCredential.Create("user", "password", "test");
Site.UseDefaultCredentials := False;
Site.ThisHostCredentials := Cred;
//Getting a root page of a site
Web := Site.RootWeb;
End Sub UserProc;
When executing an example the connection to the SharePoint site and getting the root page of the site is performed. Selected credentials are used for authorization.
See also: