Microsoft 70-573 training material
- 2012/10/08 (Mon)
- Microsoft |
- CM(0) |
- Edit |
- ▲Top
Check the percentage of previous results, and to ensure that their training is successful. Although by study 70-573 exam depends entirely on your efforts renowned training institutions for their training methods are very confidence you do not pass the examimmediately refund guarantee. Of course, to check whether they have the latest reference materials, which will also help your exam. You can also join the organization of like-minded people and chat forum to share their experiences. Read reviews of websites can give you a clear understanding about their services.
QUESTION 1
You have a helper method named CreateSiteColumn that contains the following code segment.
private static void CreateSiteColumn(SPWeb web, string columnName)
{
???
}
You need to add a new site column of type Choice to a SharePoint site by using the helper method. Which
code segment should you include in the helper method?
A. SPField field = new SPFieldChoice(System.web.Lists(0).Fields, columnName);
B. web.Fields.Add(columnName, SPFieldType.Choice, true);
C. web.Lists(0).Fields.Add(columnName, SPFieldType.Choice, True);
D. web.Lists(0).Views(0).ViewFields.Add(columnName);
Answer: B
QUESTION 2
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?
A. if (siteCollection != null)
{
siteCollection.Close();
}
B. if (siteCollection != null)
{
siteCollection.Dispose();
}
C. siteCollection = null;
D. siteCollection.WriteLocked = false;
Answer: B
QUESTION 1
You have a helper method named CreateSiteColumn that contains the following code segment.
private static void CreateSiteColumn(SPWeb web, string columnName)
{
???
}
You need to add a new site column of type Choice to a SharePoint site by using the helper method. Which
code segment should you include in the helper method?
A. SPField field = new SPFieldChoice(System.web.Lists(0).Fields, columnName);
B. web.Fields.Add(columnName, SPFieldType.Choice, true);
C. web.Lists(0).Fields.Add(columnName, SPFieldType.Choice, True);
D. web.Lists(0).Views(0).ViewFields.Add(columnName);
Answer: B
QUESTION 2
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?
A. if (siteCollection != null)
{
siteCollection.Close();
}
B. if (siteCollection != null)
{
siteCollection.Dispose();
}
C. siteCollection = null;
D. siteCollection.WriteLocked = false;
Answer: B
PR
カレンダー
リンク
カテゴリー
フリーエリア
最新コメント
最新記事
(01/06)
(12/29)
(12/27)
(12/21)
(11/24)
プロフィール
HN:
No Name Ninja
性別:
非公開
ブログ内検索
最古記事
(07/12)
(07/12)
(07/12)
(07/14)
(07/14)
この記事へのコメント