What should you do?
You manage a Visual Studio Team Foundation Server 2010 environment. It is not currently integrated with a SharePoint team project portal or with Microsoft SQL Server 2008 Reporting Services.
You need to ensure that data in the Team Foundation Server environment will not be lost in the event of hardware or software failure.
What should you do?
Which code segment should you use?
You use Microsoft .NET Framework 4 to create a Windows Forms application.
You need to allow the user interface to use the currently configured culture settings in the Control Panel.
Which code segment should you use?
What should you do?
You have a Visual Studio Team Foundation Server 2010 environment that includes team project collections named CollectionA and CollectionB. You intend to perform maintenance on CollectionA while still allowing users to connect to CollectionB.
You need to prevent end users from using CollectionA, and display a notification that CollectionA is offline, but still associated with Team Foundation Server, to users who attempt to connect to the team project collection.
What should you do?
Which code segment should you insert at line 05?
You use Microsoft .NET Framework 4 to create a Windows Forms application.
You plan to use a Windows Presentation Foundation (WPF) control of the UserControl1 type hosted in an
ElementHost control named elementHost1.
You write the following code segment. (Line numbers are included for reference only.)
01public class WPFInWinForms {
02public WPFInWinForms
03{
04InitializeComponent();
05
06}
07private void OnBackColorChange(object sender, String propertyName, object value)
08{
09ElementHost host = sender as ElementHost;
10System.Drawing.Color col = (System.Drawing.Color)value;
11SolidColorBrush brush =
new SolidColorBrush(System.Windows.Medi
a.Color.FromRgb(col.R, col.G, col.B));
12UserControl1 uc1 = host.Child as UserControl1;
13uc1.Background = brush;
14}
15}
You need to ensure that the application changes the background color of the hosted control when the background color of the form changes.
Which code segment should you insert at line 05?
What should you do?
You have a Visual Studio Team Foundation Server 2010 environment that includes multiple team project collections.
The load on your existing Microsoft SQL Server 2008 servers increases. You need to move a team project collection database from one SQL server to another SQL server. You have not configured support for SharePoint team project portals or SQL Server Reporting Services for the team project collection.
What should you do?
What should you do?
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
You plan to use an existing Windows Forms control named MyWinFormControl in the MyControls assembly.
You need to ensure that the control can be used in your application.
What should you do?
What should you do?
You upgrade from a previous version of Team Foundation Server to Visual Studio Team Foundation Server 2010.
The upgraded team project collection is named UpgradedCollection. You need to permanently move a team project named MyApp from UpgradedCollection to a new team project collection.
What should you do?
Which code segment should you use?
You use Microsoft .NET Framework 4 to create a Windows Forms application.
You have a dataset as shown in the following exhibit.
You plan to add a DataGridView to display the dataset.
You need to ensure that the DataGridView meets the following requirements:
* Shows Order Details for the selected order.
* Shows only Order Details for items that have UnitPrice greater than 20.
* Sorts Products by ProductName
Which code segment should you use?
What should you do?
You have two continuous integration build definitions. Both build definitions use the same build agent on a build server. Your build logs returns the following error: TF205022: the following path contains more than the allowed 259 characters. You need to ensure that build operations work normally.
What should you do?
Which code fragment should you use?
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
You write the following code segment.
public class Contact { private string _contactName;
public string ContactName {
get { return _contactName; }
set {
if (string.IsNullOrEmpty(value))
throw new ApplicationException(“Contact name is required”);
_contactName = value;
}
}
}
You add the following code fragment in a WPF window control.
<TextBox Text=”{Binding Path=ContactName, ValidatesOnExceptions=True, UpdateSourceTrigger=PropertyChanged}” />
The TextBox control is data-bound to an instance of the Contact class. You plan to implement an ErrorTemplate in the TextBox control.
You need to ensure that the validation error message is displayed next to the TextBox control. Which code fragment should you use?