View Count: 0
Duration: 33 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 21 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 17 mins
Accessed date:
Not Yet Viewed
Post your comment / feedback here
 
 

Be the first one to comment about this video

Sorry!For this module there is no Sample Code.
Sorry!For this module there is no Assignments.
Question No: 1 of 4
When do you use SPSiteDataQuery? 
Options:
  1. To query the data from only one list
  2. To query the data from only one or more list
  3. To query the data from only one list and One Library
  4. To query the data from only one or more lists and Libraries
View Answer/Explanation:
d
Explanation:
You can use SPSiteDataQuery when you need to extract data from more than one list\library in your site collection. The data is extracted on the basis of the query you write and is returned as a Datatable. You can also specify the GUID for the lists\libraries you want to query against.

Question No: 2 of 4
What is a SPSite and SPWeb object, and what is the difference between each of the objects? 
Options:
  1. SPSite – Site Collection and SPWeb –SubSite
  2. SPSite – Site Collection’s Top Level Site and SPWeb –SubSite under Top Level Site
  3. SPSite – Site Collection’s ,Web Collection and SPWeb –SubSite and Top Level Site
  4. SPSite –Site Collection’s and SPWeb – Top Level Site and SubSite
View Answer/Explanation:
d
Explanation:
The SPSite object represents a collection of sites. The SPWeb object represents an instance SharePoint Web, and SPWeb object represents top level site and even subsite and displays the actual content under Website. A SPSite object contains the various subsites and the information regarding them.

Question No: 3 of 4
What does a SPWebApplication object represent? 
Options:
  1. Central Administration
  2. Any one web Application based on URL which were present in Central Administration
  3. Any one web Application based on web Application Name which were present in Central Administration
  4. Any one web Application based root site collection URL which were present in Central Administration
View Answer/Explanation:
c
Explanation:
The SPWebApplication objects represents a SharePoint Web Application, which essentially is an IIS virtual server. Using the class you can instigate high level operations, such as getting all the features of an entire Web Application instance, or doing high level creation operations like creating new Web Applications through code

Question No: 4 of 4
You have a Web application that contains the following code segment.
private void CreatingSPSite()
{
SPSite siteCollection = null;
try
{
siteCollection = new SPSite("http://contoso.com");
}
Finally
{ }
}
You need to prevent the code segment from causing a memory leak.
Which code segment should you add? 
Options:
  1. if (siteCollection != null) { siteCollection.Close(); }
  2. if (siteCollection != null) { siteCollection.Dispose(); }
  3. siteCollection = null
  4. siteCollection.WriteLocked = false
View Answer/Explanation:
b
Explanation:
Method 1: The basic difference between Close() and Dispose() is, when a Close() method is called, any managed resource can be temporarily closed and can be opened once again. It means that, with the same object the resource can be reopened or used. Whereas Dispose() method permanently removes any resource (un- managed) from memory for cleanup and the resource no longer exists for any further processing. Method 2: Using (SPSite site =new SPSite("http://www.contoso.com/default.aspx")) Using "Using" guarantees that resources are properly cleaned up and that they're cleaned up in the most timely manner.

  1