nnug certification presentation

28
70-536.NET Application Deve lopment Foundation

Upload: niall-merrigan

Post on 15-Jul-2015

811 views

Category:

Technology


0 download

TRANSCRIPT

70-536 .NET Application Development Foundation

Agenda Exam Basics Exam Tips Exam Breakdown Resources

70-536 Exam Basics Exam Objectives and Matrix

http://www.microsoft.com/learning/en/us/exams/70-536.mspx Approximately 50-60 questions Mostly multiple choice Passing score 700/1000 Offered in 3 different programming languages

VB.NET 2005 C# 2005 C++ 2005

Exam tips Read the question!!!!

What are you being asked for? How many options do you have to choose Each question is on its own, does not relate to previous

questions On code segments, play spot the difference Check the parameters and logic. Don’t assume Know when to use particular classes Finally, if it is old tech vs new, new is probably the

answer

Whats in 70-536 .NET Classes

Specifically the System namespace Things to know

New features of 2.0 vs 1.1 Command line tools Tracing & debugging Code security

Breakdown of the exam Security 20% Serialization 18% System Types and Collections 15% , , Configuration Management Diagnostic and

Installation Features 14% , Service Processes Threading and Application

Domains 11% , Interoperability Reflection and Mailing 11% , , Globalization Drawing Text Manipulation 11%

Security Code Access Security permission sets (Nothing all the way to

Full Trust)

Caspol – command line tool for setting and viewing code

access security

AccessControl class – for managing access control lists

Encrypting and Decrypting

Symmetric vs Asymmetric cryptography (3DES, RSA for

example)

Security Permission Classes

DataProtectionPermission EnvironmentPermission FileIOPermission IsolatedStoragePermission

Security Policy Classes Identity and Principal types (Windows, Generic,

Custom) IIdentity Interface (Name property, IsAuthenticated

boolean function) IPrincipal Interface (Identity property, IsInRole

method)

Serialization Serialization

Apply Serializable Attribute to serialize all properties Apply NonSerialized attribute to exclude properties Implement ISerializable interface to customize serialization

Formatter Expose Iformatter interface Implement Serialize and Deserialize methods

BinaryFormatter (for compact storage) SOAPFormatter (for XML format, works across firewalls) Use XMLSerializer to serialize an object to a specific XML

format

Serialization Retrieve File, Directory and Drive information (FileInfo,

DirectoryInfo, DriveInfo classes) Streams

Stream (abstract class) FileStream (access to files) MemoryStream (access to memory buffers) BufferStream (access to streams that do not support

buffering, you may need it for custom streams)

Serialization Readers and Writers

TextReader /TextWriter(abstract class) StringReader/StringWriter (reads from a string) StreamReader/StreamWriter (data in text format to a

stream) BinaryReader/BinaryWriter (data in binary format to a stream)

Compression DeflateStream, GZipStream (GzipStream uses standard

algorithm and is the preferred compression class)

System Types & Collections Nullable types

Generic types

Generic Collections

System Types & Collections Specialised Collections

ListDictionary HybridDictionary HashTable Stack

Interfaces Creating Event Handlers

Service Threading & Domains Creating a class that runs as a service

Create Windows Service Project

Create service that inherits ServiceBase class

Override OnStop and OnStart methods of class

Install a service

Create installer class in service project that inherits

System.Configuration.Install.Installer

Service Threading & Domains Launching a method in a thread

Pass Parameters to a thread ThreadStart does not accept parameters ParameterizedThreadStart accepts one parameter but is

not type safe Thread Pool – for running many small jobs in threads Application Domains – isolate applications

Diagnostics Writing and reading to and from event logs

Retrieving information about processes

Using Mscorcfg.msc (.NET Framework Configuration Tool) for managing assemblies in the GAC, adjusting Code Access Security

Debug Trace Listeners

DefaultTraceListener (writes to output window, fails go to message boxes used in development only, not production)

TextWriterTraceListener (writes to a TextStream good for file output)

EventLogTraceListener (writes to windows event log)

TraceSwitch (0-Off;1-Error;2-Warning;3-Info;4-Verbose) Debugging (Assert, Write, WriteLine, WriteIf, WriteLineIf) Performance counters Retrieving management information from WMI

Interop Exposing .Net components to COM

Need a default constructor that takes no arguments Uses System.RunTime.InteropServices Generate strong name with Sn.exe Add reference to strong name in .config file (AssemblyKeyFile) Choose Register for COM Interop OR manually register and generate

type library using RegAsm.exe Expose class members through an interface

Calling COM from .Net Register COM dll with regsvr32 Add reference to dll in project, Visual Studio generates a proxy Invoke component by creating a runtime callable wrapper (i.e. instance of

proxy class)

Interop Calling COM from .Net using Type Library Importer

(Tlbimp.exe) to create an interop assembly that can be called by .Net tlbimp myTest.tlb /out:myTest.dll

Using Platform Invoke and DllImport decoraction to call Windows APIs

Reflection Reflection and Reflection.emit for creating and

reading Metadata (MSIL)

Mail Sending email using SMTP

Globalization(!) Localization (CultureInfo, CurrentCulture,

CurrentUICulture)

IFormatProvider

Drawing System.Drawing (Pens, Fonts, Brushes)

To access the graphics of a form you must override the

OnPaint method of the form

Graphics Class

Text StringBuilder – uses memory more efficiently than String

when performing frequent updates or appends to a string Regex – to use regular expressions Encoding and Decoding

ASCIIEncoding UnicodeEncoding UTF7Encoding UTF8Encoding

Resources Blogs

MS Learning http://blogs.technet.com/mslcommunity/ Gerry O’Brien http://blogs.msdn.com/gerryo/ Mine http://certsandprogs.blogspot.com

Forums ProProfs http://www.proprofs.com/forums/index.php?act=idx TechExams http://www.techexams.net/ MSDN http://social.msdn.microsoft.com/Forums/en-

US/CertGeneral/threads/ Boards.ie http://www.boards.ie/vbulletin/forumdisplay.php?f=882

Resources MS Press Errata

http://certsandprogs.blogspot.com/2008/12/ms-press-training-kits-errata-and.html

How to prepare for your exams http://certsandprogs.blogspot.com/2008/11/preparing-for-your-ms-exams.html

Taking your exam http://certsandprogs.blogspot.com/2008/11/sitting-your-ms-exam.html

Second Shot http://certsandprogs.blogspot.com/2008/12/microsoft-second-shot-offer.html

Thanks Quick thanks to Susan Ibach and Trika Harms zum

Spreckel for help on the slide deck