fundamentals of.net nyu-scps. session 7 ms certification exams in brief ms certification exams in...

Download Fundamentals of.NET NYU-SCPS. Session 7 MS Certification Exams in brief MS Certification Exams in brief Custom Attributes Custom Attributes More on Collections

Post on 02-Jan-2016

219 views

Category:

Documents

3 download

Embed Size (px)

TRANSCRIPT

  • Fundamentals of .NETNYU-SCPS

  • Session 7MS Certification Exams in briefCustom AttributesMore on CollectionsAdditional Types with ExamplesGenerics with ExamplesMore on StreamsDetailed Socket exampleMore on protocol clients and listeners with examplesBuilding Windows ApplicationsCreating a Simple Windows FormUsing the Visual Studio .NET DesignerCreating a Windows Forms ApplicationPopulating the TreeView ControlsHandling TreeView eventsDeployment ProjectsSetup Project

  • Microsoft CertificationsTechnology Specialist70-536.NET Framework 2.0Application Development Foundation70-526.NET Framework 2.0Windows Based Applications70-528.NET Framework 2.0Web Based Applications70-529.NET Framework 2.0Web Based Applications

  • 70-536 App Development FoundationDeveloping applications that use system types and collections (15%) Implementing service processes, threading, and application domains in a .NET Framework application (11%) Embedding configuration, diagnostic, management, and installation features into a .NET Framework application (14%) Implementing serialization and input/output functionality in a .NET Framework application (18%) Improving the security of the .NET Framework applications by using the .NET Framework 2.0 security features (20%) Implementing interoperability, reflection, and mailing functionality in a .NET Framework application (11%) Implementing globalization, drawing, and text manipulation functionality in a .NET Framework application (11%)

  • 70-526 Windows Based ApplicationsCreating a UI for a Windows Forms Application by Using Standard ControlsIntegrating Data in a Windows Forms ApplicationImplementing Printing and Reporting Functionality in a Windows Forms ApplicationEnhancing UsabilityImplementing Asynchronous Programming Techniques to Improve the User ExperienceDeveloping Windows Forms Controls Configuring and Deploying Applications

  • 70-528 Web Based ApplicationsCreating and Programming a Web ApplicationIntegrating Data in a Web Application by Using ADO.NET, XML, and Data-Bound ControlsCreating Custom Web ControlsTracing, Configuring, and Deploying ApplicationsCustomizing and Personalizing a Web ApplicationImplementing Authentication and Authorization Creating ASP.NET Mobile Web Applications

  • 70-529 Distributed ApplicationsCreating and Accessing XML Web ServicesConfiguring and Customizing a Web Service ApplicationCreating, Configuring, and Deploying Remoting ApplicationsImplementing Asynchronous Calls and Remoting EventsImplementing Web Services Enhancements (WSE) 3.0Creating and Accessing a Serviced Component and Using Message Queuing

  • Custom AttributesProgrammers can define custom attributes for their targets and use them in their programsThese attributes may be discovered at run time by class methodsAttribute target is defined with the Attribute class definition which may be one of All, Assebly, Class, Constructor, Delegate, Enum, Event, Field, Interface, Method, Module, Parameter, Property, ReturnValue, or StructAttributes are not inheritedAttributes do not occupy any storage space in the heap with class data members instead they are stored in the metadata section of the Assembly and are retrieved using Reflection API

  • 197198199200201202ArraysFast random accessInsertions will require moving memoryDeletions will require moving memorySize is predeterminedExtending will require moving memoryData is arranged using simple indexing algorithmCharacteristicsScheme

  • ListsSlow random accessInsertions are quickDeletions are quickSize is unlimitedCan extend endlessly197198199200201202headtailSchemeCharacteristicsData is arranged using pointers.Head points to the first element and Tail points to lastNext in each node points to the next element

  • 100200Hash SetQuite fast random accessInsertions are quickDeletions are quickSize is UnlimitedExtending will not require moving memory197198199200201202203CharacteristicsSchemeData is arranged using buckets.HashCode determines bucketEquals determines matchCannot have duplicate values in this sethash codes

  • 100200Hash TableQuite fast random accessInsertions are quickDeletions are quickSize is UnlimitedExtending will not require moving memorykey197key198key199key200key201key202key203CharacteristicsSchemeData is arranged using buckets.HashCode of key determines bucketEquals of key determines matchCannot have duplicate keysValue hangs off of keys and can be duplicatedkey hash codesvalue197value198value199value200value201value202value203

  • More Collection ClassesConcrete Collection classesArrayList, Hashtable, Queue, SortedList, StackSpecialized CollectionsListDictionary implements Dictionary using a singly linked listHybridDictionary uses ListDictionary for small collections (of up to 10 items) and switches to a Hashtable for a large collectionStringDictionary implements Dictionary where both key and value are strings instead of ObjectsNameValueCollection represents a collection of case insensitive String keys and String values that may be accessed by key or by indexConcrete GenericsCollection, Comparer, Dictionary, List, Queue, SortedDictionary, Stack, LinkedList, ReadOnlyCollection

  • Network ExamplesSocket ServerSocket ClientHttpListenerMailClient

  • System.Windows.FormsCore infrastructure: Types that represent the core operations of a .NET Forms program (Form, Application, etc.)Controls: Types used to create rich UIs (Button, ProgressBar, DataGridView etc.)Components: Types that do not directly derive from Control but provide visual features (ToolTip, Timer, etc.)Common dialog boxes: Number of canned dialog boxes for common operations (OpenFileDialog, PrintDialog, etc.)

  • Classes/TypesApplication, FormButton, CheckBox, ComboBox, DateTimePicker, ListBox, LinkLabel, MaskedTextBox, MonthCalendar, PictureBox, TreeViewFlowLayoutPanel, TableLayoutPanelColorDialog, OpenFileDialog, SaveFileDialog, FontDialog, PrintPreviewDialog, FolderBrowserDialogMenu, MainMenu, MenuItem, ContextMenu, MenuStrip, ContextMenuStripStatusBar, Splitter, ToolBar, ScrollBar, StatusStrip, ToolStrip

  • Building Windows AppsDerive a new class from System.Windows.Forms.FormCall Application.Run with an instance of this Formnamespace FormExample { public class MainWindow : Form { } public class Program { static void Main() { Application.Run(new MainWindow()); } }}

  • Application classDefines static members that allow you to control various behaviors of a Windows Forms application.Defines a number of propertiesDefines various events and their handlers such as ApplicationExit, Idle etc.

  • Form classDefines static members that allow you to control various behaviors of a Windows Forms application.Defines a number of propertiesDefines various events and their handlers such as ApplicationExit, Idle etc.Can be used to create standard, tool, borderless, and floating windows.The multiple-document interface (MDI) form can contain other forms called MDI child formsContains properties to determine the appearance, size, color and other window management features of the window or dialog box.

  • Control ClassBase class of controls such as Button, CheckBox etcImplements basic functionality required to display information to the user.Handles user input through keyboard and and mouse.

  • Events in Form classSeveral events are fired in the process of loading and creating a formLoad event is fired after the Form is createdActivated and Deactivated events are fired when the form goes in (and out of) focusClosing event is fired when the user tries to close the form

  • MenusMenuStrip is the main control for building menus which may be fixed or floatingToolStripMenuItem represents a menu item contained in MenuStripToolStripComboBox is combo box embedded in the menuToolStripSeparator is a simple line separatorToolStripTextBox is a text box embedded in a menu item

  • Build GridExampleApplication

Recommended

View more >