631IndexSpecialCharacters$element,regularexpressions,63%PATH%variable,613*element,regularexpressions,63^element,regularexpressions,63|(pipecharacter),222,477+operator,71(inequality)operator,71(greaterthan)operator,71>=(greaterthanorequalto)operator,71"(doublequotes),19'(singlequotes),19-(unarynegation)operator.
Seeunary(-)operatorAAelement,regularexpressions,63AbortmethodHttpListenerContextclass,449Threadclassterminatingexecutionofthread,171unloadassembliesorapplicationdomainsatruntime,116AcceptTcpClientmethod,TcpListenerclassasynchronouscommunicationsusingTCP,466communicatingusingTCP/IP,463accesscontrollists.
SeeACLaccesstokens,impersonatingWindowsusers,517Accountproperty,ServiceProcessInstallerclass,624AccountOperatorvalue,WindowsBuiltInRoleenumeration,512ACL(accesscontrollists)methodsforadding/removingACLs,230modifyingACLoffile/directory,229–232ActiveMovieCOMcomponentplayingsoundfile,413playingvideowithDirectShow,415ActiveMovieControlTypeLibrary,413ActiveXcontrols,usingin.
NETclients,556–557Addattribute,269Addmethod,582Controlsproperty,345creatingparameterobjects,317HttpListenerPrefixCollection,449Interlockedclass,168Parameterscollection,316,317,331AddReferencedialogbox,627AddAccessRulemethod,FileSecurityclass,230AddAfterSelfattribute,269AddAfterSelfmethod,269AddBeforeSelfattribute,269AddBeforeSelfmethod,269AddClosedCurvemethod,GraphicsPathclass,398AddEllipsemethod,GraphicsPathclass,398AddFirstmethod,269addition(+)operator,71AddMembermethod,582addmodule/addmodulecompilerswitch,8,9AddPrinterConnectionmethod,Win32_Printerclass,435AddRectanglemethod,GraphicsPathclass,398AddressOfkeyword,599AddressOfoperator,130AddValuemethod,,563AddXyzmethods,DateTimestructure,71Administratorvalue,WindowsBuiltInRoleenumeration,512ADOobjects,552ADO.
NET,299–300Aggregateclause,242,248Aggregatemethod,243Aggregate.
Intoclause,243,244,245,246,247al.
exe(AssemblyLinkertool),11algorithmshashcodealgorithm,212keyedhashingalgorithmimplementations,531alltag,286AllDirectoriesvalue,SearchOptionenumeration,211AllowDropproperty,Controlclass,380632INDEXAllowMultipleproperty,125AllowNavigationproperty,WebBrowsercontrol,383AllowPartiallyTrustedCallersattribute,497AllowPartiallyTrustedCallersAttributeclass,496,498ANDoperator,20,22AndAlsooperator,20animationcreatinganimatedsystemtrayicon,376playingvideowithDirectShow,415–417anonymoustypes,44–45AnonymousPipeClientStreamclass,477AnonymousPipeServerStreamclass,477antialiasing,409API(applicationprogramminginterface),391APP_CONFIG_FILEkey,101AppDomainclassBaseDirectoryproperty,101CreateDomainmethod,100CreateInstancemethod,109CreateInstanceAndUnwrapmethod,109CreateInstanceFrommethod,109CreateInstanceFromAndUnwrapmethod,107–109ExecuteAssemblymethod,102–103,109ExecuteAssemblyByNamemethod,102–103GetDatamethod,101–114IsFinalizingForUnloadmethod,116maintainingreferencetoinstanceof,102namespace,100RelativeSearchPathproperty,101restrictingwhichuserscanexecutecode,515SetDatamethod,113–114SetPrincipalPolicymethod,515SetThreadPrincipalmethod,515Unloadmethod,115–116usingisolatedfilestorage,224–225AppDomainSetupclass,101AppendCharmethod,SecureStringclass,533Applicationclass,385OpenFormsproperty,350Runmethod,5applicationdevelopmentaccessingcommand-linearguments,17–19accessingelementnamedasVB.
NETkeyword,25buildingprojectsfromcommandlineusingMSBuild.
exe,14–17creatingandusinglambdaexpressions,47–49creatingcodelibraryfromcommand-line,10–11creatingcodemodulefromcommand-line,8creatingconsoleapplicationfromcommand-line,2–5creatingextensionmethods,45–47creatingSPCtotestAuthenticodesigningofassembly,37–38creatingstrong-namedkeypairs,26–27creatingWindowsFormsapplicationfromcommand-line,5–8delaysigningassemblies,31embeddingresourcefileinassembly,11–13givingstrongnametoassemblies,27–29managingGlobalAssemblyCache,38–39manipulatingappearanceofconsole,23preventingdecompilationofassemblies,39–40selectivelyincludingcodeatbuildtime,19signingassemblieswithAuthenticode,37signingassemblieswithauthenticodedigitalsignature,32–36tools,.
NETSDK,2usinganonymoustypes,44–45usingobjectinitializers,41–44verifyingstrong-namedassemblynotmodified,30applicationdomains/reflection/metadatacreatingapplicationdomain,100–102creatingcustomattributes,124–126creatingtypecancrossapplicationdomainboundaries,106creatingtypecan'tcrossapplicationdomainboundaries,105–106executingassemblyinremoteapplicationdomain,102–104inspectingvalueofcustomattributesatruntime,127–128instantiatingobjectsusingreflection,121instantiatingtypeinremoteapplicationdomain,109–113applicationprogramminginterface(API),391ApplicationSettingsfunctionality,355–356ApplicationBaseproperty,AppDomainSetupclass,101ApplicationExceptionArgumentException,79,449ArgumentNullException,121,590ArgumentOutOfRangeException,52,590AsyncCallbackdelegate,327633INDEXAsynchCallbackdelegate,449Attributeclass,124AttributeTargetsenumeration,125AttributeUsageAttributeclass,124BitConverterclass,56,528CannotUnloadAppDomainException,116classesderivingfromMarshalByRefObject,106Consoleclass,23,92,586ConsoleColorenumeration,23ConsoleKeyInfoclass,93Convertclass,59DateTimeclass,68DateTimestructure,148,185,572Enumclass,119Environmentclass,17,605EnvironmentVariableTargetenumeration,609EventArgsclass,593,598Exceptionclass,589FormatException,590FormatExceptionclass,69GCclass,582IAsyncResultinterface,327ICloneableinterface,567IComparableinterface,77,571IDisposableinterface,87,534,582IFormatProviderinterface,586IFormattableinterface,586IntPtrclass,534IntPtrtype,518InvalidCastException,79,119InvalidOperationException,460,576InvalidOperationExceptionclass,510,534MarshalByRefclass,482MarshalByRefObjectclass,106,481MissingMethodException,102applications.
SeealsoWindowsFormsapplicationensuringonlyoneinstanceofapplicationexecuting,179–181respondingtoHTTPrequestsfromapplication,448–452startapplicationrunninginnewprocess,174–177terminatingprocess,177–179ApplicationSettingsproperty,355applytemplatescommand,295apply-templatescommand,295argsargument,17ArgumentExceptioncopyingcontentsofcollectiontoarray,79respondingtoHTTPrequestsfromapplication,449ArgumentExceptionexception,307ArgumentNullException,121,590ArgumentOutOfRangeException,590argumentsaccessingcommand-linearguments,17–19passingdatabetweenapplicationdomains,113Argumentsproperty,ProcessStartInfoclass,175arrangingcontrolsonformautomatically,369Arrayclass,Sortmethod,77–78ArrayListclassimplementingcomparabletype,572namespace,114passingdatabetweenapplicationdomains,114queryingnongenericcollection,236Sortmethod,77–78,572ToArraymethod,79ArrayListclass,System.
Collections,90ArrayListstructure,77–78arrayscopyingcontentsofcollectiontoarray,79–80manipulatingorevaluatingcontentsof,80–84sortingcontentsofarrayorArrayListcollection,77–78Ascendingkeyword,239AscendingCirculationComparerclass,572AscendingCirculationComparerobject,572ASCIIencoding,201ASCIIproperty,54,456ASCIIEncodingclass,54AsEnumerableextensionmethod,315aspectratio,409assemblies,496–498Assembly:(Assemblyprefix),498Assemblyclass,98,508AssemblyCultureAttributeattribute,28AssemblyNameclass,67AssemblyVersionAttributeattribute,28ConstructorInfoclass,121Evidenceproperty,508GetTypemethodmethodsreturningTypeobjects,117retrievingobjecttype,116634INDEXGetTypesmethodmethodsreturningTypeobjects,117retrievingobjecttype,116ICustomAttributeProviderinterface,127inspectingassembly'sevidence,508Loadmethod,98–99LoadFrommethod,98–99loadingassemblyintocurrentapplicationdomain,98LoadWithPartialNamemethod,98namespace,98assemblyevidencecollection,Evidenceclass,508AssemblyInformationdialogbox,29AssemblyLinkertool(al.
exe),11assemblymanifest,9Assemblyprefix(Assembly:),498AssemblyCultureAttributeattribute,28AssemblyNameclassmanagementofobjects,85usingcompiledregularexpressions,67AssemblyNameclass,System.
Reflection,67AssemblyQualifiedNamecolumn,332AssemblyVersionAttributeattribute,28assignment(=)operator,71associations,336Asteriskproperty,SystemSoundsclass,411AsyncCallbackdelegateasynchronousoperations,327executingmethodsasynchronously,134AsyncExampleDelegate,134–135AsynchCallbackdelegate,449asynchonousmethod,140–145asynchronization.
Seealsosynchronizationblocking,134callingunmanagedfunctionthatusescallback,548–549determiningwhetherasynchronousmethodhasfinished,134polling,134readingfilesasynchronously,208–210waiting,134asynchronousdatabaseoperations,327–330asynchronousmethodsdeterminingifasynchronousmethodfinished,328WebClientclass,446asynchronousoperationsasynchronouscommunicationsusingTCP,466–474blocking,328callbacks,328executingdatabaseoperationsasynchronously,327polling,328SqlCommandclass,327waiting,328AsyncProcessorclassreadingfilesasynchronously,208–210StartProcessmethod,208AsyncWaitHandleproperty,IAsyncResult,134Attachmentclass,456AttachmentCollectionclass,456Attributeclasscreatingcustomattributes,124namespace,124attributeschangingvalueof,271–272creatingcustomattributes,124–126decoratingtypeswithcustomattribute,126inspectingvalueofcustomattributesatruntime,127–128removing,272–274replacing,272–274selectivelyincludingcodeatbuildtimeusing,19serializationanddeserialization,563settingfileordirectoryattributes,189–190Attributesmethod,274Attributesproperty,185,189AttributeTargetsenumeration,125AttributeUsageAttributeclass,125Audioclass,411audiofiles,413AudioPlayModeenumeratedtype,412authentication,452–454authenticode,32–38Authorproperty,249AuthorAttributeattribute,125–126AutoCompleteComboBoxcontrol,362–364AutoCompleteModeproperty,362AutoCompleteSourceproperty,362autocompletion,362–364AutoLogproperty,ServiceBaseclass,620AutoResetEventclassclassesusedastriggers,150executingmethodwhenWaitHandlesignalled,150Setmethod,160synchronizingmultiplethreadsusingevent,159635INDEXAutoScrollpropertyaddingcontrolstoformsatruntime,345findingallinstalledfonts,392AutoScrollproperty,Panelcontrol,403AvailableFreeSpaceproperty,185,219,220averagecalculations,243,244Averagemethod,243AveragePriceproperty,248AxHostclass,556Aximp.
exe,556AxImporterclass,556axisproperties,270–274AxMaskEdBoxclass,556AxMSMask.
dllfile,556Bbackgroundthreads,133Backgroundvalue,PlayModeparameter,412BackgroundColorproperty,Consoleclass,23BackgroundImageproperty,399BackgroundLoopparameter,412BackgroundLoopvalue,PlayModeparameter,412BackgroundWorkerclass,133–142BackgroundWorker.
ProgressChangedeventhandler,144BackgroundWorker.
RunWorkerAsyncmethod,141BackgroundWorker.
WorkerReportsProgressproperty,142BackgroundWorker.
WorkerSupports-Cancellationproperty,142backslashcharacter(BBB),19BackupOperatorvalue,WindowsBuiltInRoleenumeration,512Base64array,59BaseDirectoryproperty,AppDomainclass,101BaseUtcOffsetproperty,73BBB(backslashcharacter),19BC30420compilationerror,3Bccproperty,MailMessageclass,456Beepmethod,Consoleclass,410–411BeepOnErrorproperty,MaskedTextBoxcontrol,359BeforeExpandevent,TreeViewcontrol,197–198BeginAcceptTcpClientmethod,TcpListenerclass,466–467BeginExecuteNonQuerymethod,327BeginExecuteReadermethod,327BeginExecuteXmlReadermethod,327BeginGetContextmethod,448–450BeginInvokemethod,133–134BeginPrintevent,420–424BeginReadmethodFileStreamclass,208NetworkStreamclass,467BeginWritemethod,NetworkStreamclass,466–467BigEndianUnicodeproperty,UnicodeEncodingclass,54binarydata,59binaryfile,203–204BinaryFormatterclassDeserializemethod,89implementingcloneabletype,568Serializemethod,89BinaryFormatterclass,System.
Runtime.
Serialization.
Formatters.
Binary,89BinaryReaderclassconvertingbytearraytoDecimaltype,57downloadingfileandprocessingusingstream,446–447Readmethod,203ReadDecimalmethod,203readingandwritingbinaryfiles,203ReadStringmethod,203BinaryWriterclass,57,203bindingRedirectelements,99BitConverterclassconvertingbooltypeto/frombytearray,57–58convertinginttypeto/frombytearray,57–58GetBytesmethod,56ToBooleanmethod,57ToInt32method,57ToStringmethod,58,528–529verifyinghashcodes,528Bitmapclass,405BitVector32class,173Blocking,328blockingdescription,129determiningifasynchronousmethodfinished,328executingmethodsasynchronously,134threads,155Bodyproperty,MailMessageclass,456BodyEncodingproperty,MailMessageclass,456bookproperty,251BookListproperty,249636INDEXbooltype,57–58Booleanargument,616Booleanparameter,583Booleanvariable,287booleanInfodatamember,591borderlessform,373boundariesapplicationdomains,105–106crossplatform,437BufferHeightproperty,Consoleclass,23buffering,407BufferWidthproperty,Consoleclass,23buildtime,19BUILTINprefixforWindowsgroups,512–513Buttonproperty,593ByRefkeyword,167bytearrays,56–59,528,611bytes,56CCfunction,540/cparameter,294CA(certificateauthority),32CallbackExamplemethod,135CallbackHandlermethod,135callbacks,328Cancelproperty,DoWorkEventArgsclass,142CancelAllJobsmethod,435CancelAsyncmethod,141–142CancelAsyncmethod,WebClientclass,444CancellationPendingproperty,141–142Cancelledproperty,142CanGoBackproperty,WebBrowsercontrol,383CanGoForwardproperty,WebBrowsercontrol,383CanHandlePowerEventproperty,ServiceBaseclass,619CanHandleSessionChangeEventproperty,ServiceBaseclass,619CannotUnloadAppDomainException,116CanPauseAndContinueproperty,ServiceBaseclass,619CanShutdownproperty,ServiceBaseclass,619CanStopproperty,ServiceBaseclass,619Capacityproperty,StringBuilderclass,52CAS(codeaccesssecurity)allowingpartiallytrustedcodetousestrong-namedassemblies,497description,495disablingexecutionpermissionchecks,498–500limitingpermissionsgrantedtoassembly,502runtimegrantingspecificpermissionstoassembly,500case-sensitivity,62caspolcommand,498–500Caspol.
exe,498–500Castmethod,259castingspecializedcollectionclasses,174TryCastkeyword,119Catchstatement,589CCproperty,MailMessageclass,456CCW(COMcallablewrapper),558cert2spc.
exe,37certificateauthority(CA),32CertificateCreationtool(makecert.
exe),37Certificatesclass,453Certificatesproperty,452–453Changemethod,Timerclass,146Changedevent,226ChangeExtensionmethod,Pathclass,214–215chararray,59character-encodingclasses,54checkboxes,346CheckExecutionRightsproperty,SecurityManagerclass,498–500CheckFileExistsproperty,OpenFileDialogclass,221classescharacter-encodingclasses,54controllinginheritanceandmemberoverridesusingCAS,506–508generatingfromschemas,294–295generating.
NETclassfromschema,294–295IOI/Oclasses,183mainrootclassesofMy,183networkingclasses,.
NETFramework,437passingobjectsbyreference,107passingobjectsbyvalue,107ClassesRootfield,RegistryKeyclass,615Clearmethod,Consoleclass,24Clearmethod,SecureStringclass,534Clickeventhandler,377clientapplication,481ClientCertificatesproperty,SmtpClientclass,455ClientHandlerclass,467ClientRectangleproperty,Controlclass,400Clonemethod,ICloneable,568–569637INDEXcloneabletypes,567–571Closemethod,301,321,449CloseAllFiguresmethod,GraphicsPathclass,398CloseMainWindowmethod,Processclass,177–178CLR(commonlanguageruntime),420,605callingunmanagedfunctionthatusesstructure,545usingCfunctionfromexternallibrary,540Cngclasses,523codecriticalsectionof,155managed,539preventingdecompilationofassemblies,39–40selectivelyincludingatbuildtime,19unmanaged,interoperabilityrecipes,539,559codeaccesssecurity.
SeeCAScodegroups,495/codeparameter,338codeBaseelements,99collectionclasses,173–174collectionscastingtospecifictype,259–261comparingandcombining,256–258copyingcontentsofcollectiontoarray,79–80creatinggenerictype,86–89displayingcollectiondatausingpaging,254generic,querying,234–236predefinedgenericcollections,85queryingnongenericcollection,236retrievingspecificelementsof,253–254sortingdatausingLINQ,239usingstronglytypedcollection,84–86Columnproperty,ListViewItemComparerclass,365ColumnCountproperty,TableLayoutPanelcontainer,369COMcallablewrapper(CCW),558COMclients,558–559COMinterop,552COMInteropassigningallcodefulltrust,497creatingshortcutondesktoporStartmenu,626COMobject,413COMport,228–229Combinemethod,Pathclass,214CombinePathmethod,FileSystemclass,215ComboBoxcontrol,362–364commandclasses,312–313commandlineaccessingcommand-linearguments,17–19buildingprojectsfrom,usingMSBuild.
exe,14–17creatingcodelibrary,10–11creatingcodemodule,8creatingconsoleapplication,2–5creatingWindowsFormsapplication,5–8generatingdataobjectclassesfrom,338–339selectivelyincludingcodeatbuildtime,19commandlineutilitiesAximp.
exe,556Tlbexp.
exe,558Tlbimp.
exe,552xsd.
exe(XMLSchemaDefinitionTool),293CommandPromptshortcut,2CommandLineproperty,Environmentclass,17,606CommandTextproperty,311–312CommandTimeoutproperty,312CommandTypeenumeration,312CommandTypeproperty,311–312CommentTokensproperty,TextFieldParserclass,205–206commonlanguageruntime.
SeeCLRCommonDialogclass,221CompactFrameworkdataprovider,300comparabletypes,571Comparemethod,IComparer,365,572CompareExchangemethod,Interlockedclass,168CompareTomethod,IComparable,571–572Compiledoption,RegexOptionsenumeration,66compilerdirectives,19CompileToAssemblymethod,Regexclass,66–67complexdatatypes,XMLschema,286complextypes,286Componentclass,444,460classesderivingfromMarshalByRefObject,106pingingIPaddresses,460RunInstallerAttribute,623–624WebClientclassand,444638INDEXcomponenthostscontrollingversioningforremoteobjects,492description,481makingobjectsremotable,481ComputeHashmethod,HashAlgorithmclasscalculatinghashcodeoffiles,526calculatinghashcodeofpassword,524ensuringdataintegrityusingkeyedhashcode,531testingtwofilesforequality,213Computerclass,Myobject,183Concatmethod,256–257ConditionalAttributeclass,System.
Diagnosticsnamespace,19–20Configurationclass,309configurationdata,113–115configurationfiles,99configurationinformation,101configurationsettingssavingconfigurationsettingsforforms,355specifying,101Configuration.
ConnectionStringsproperty,309ConfigurationFileproperty,AppDomainSetupclass,101ConfigurationManagerclass,309Configuration.
Savemethod,309ConfigurationUserLevelenumeration,311Configuremethod,RemotingConfigurationclass,481Connectmethod,477connecting,301–303connectionclasses,301ConnectionLifetimesetting,304connectionpooling,304–306Connectionproperty,312ConnectionResetsetting,304connectionstring,301connectionstringbuilderclasses,307connectionstringsconnectionstringsettingscontrollingconnectionpooling,304creatingdatabaseconnections,301creatingprogrammatically,306–308encrypted,writing,309security,308storingdatabaseconnectionstringsecurely,308–311storingsecurely,308–311unencrypted,storing,309connectionsconnectionpooling,304–306creatingdatabaseconnectionstringprogrammatically,306creatingdatabaseconnections,301detectingchangesinnetworkconnectivity,441–443IDbConnectioninterface,331storingdatabaseconnectionstringsecurely,308–311ConnectionStringproperty,301–309creatingdatabaseconnectionstringprogrammatically,307databaseconnectionclasses,301ConnectionStringproperty,ConnectionStringSettingsclass,309ConnectionStringsproperty,ConfigurationManagerclass,309ConnectionStringSettingsclass,309ConnectionStringsSectioncollection,309ConnectionStringsSection.
SectionInformation.
ProtectSectionmethod,309console.
SeeWindowsconsoleConsoleclassBeepmethod,410–411implementingformattabletype,586KeyAvailablemethod,93manipulatingappearanceofconsole,24namespace,92playingbeeporsystem-definedsound,411propertiesandmethods,23Readmethod,92ReadKeymethod,92–93ReadLinemethod,92–93Writemethod,8WriteLinemethod,8,586Console.
Beepmethod,411ConsoleColorenumeration,Systemnamespace,23ConsoleKeyenumeration,93ConsoleKeyInfoclass,93ConsoleModifiersenumeration,93ConsoleUtilsclasscreatingcodelibraryfromcommand-line,10creatingconsoleapplication,3–4ConstHHHConstdirective,19–20ConstructorInfoclass,121Containerclass,345Containsmethod,Rectanglestruct,394ContextMenuproperty,NotifyIconcontrol,376context-sensitivehelp,381–382639INDEXControlclassAllowDropproperty,380ClientRectangleproperty,400creatingmovableshape,399DoDragDropmethod,379–380DragDropevent,379–380DragEnterevent,379–380Handleproperty,415MouseDownevent,373–380MouseUpevent,373Regionproperty,397–400Tagproperty,347usingActiveXcontrolin.
NETclients,556controlclasses,543ControlBoxproperty,372Control.
ClientRectangleproperty,400ControlCollectionclassaddingcontrolstoformsatruntime,345processingallcontrolsonforms,349Control.
Handleproperty,415controllerclass,109controllingversioningforremoteobjects,491–492detectingchangesinnetworkconnectivity,441–443downloadingdataoverHTTPorFTP,443–446downloadingfileandprocessingusingstream,446–448gettingHTMLpagefromsiterequiringauthentication,452–454hostingremoteobjectsinIIS,488–489makingobjectsremotable,481–486obtaininglocalnetworkinterfaceinformation,438–441pingingIPaddresses,460–462registeringremotableclassesinassembly,486–488resolvinghostnametoIPaddressusingDNS,458–459respondingtoHTTPrequestsfromapplication,448–452securityandcryptography,495–537allowingpartiallytrustedcodetousestrong-namedassemblies,496–498calculatinghashcodeoffiles,526–528calculatinghashcodeofpassword,522–526controllinginheritanceandmemberoverridesusingCAS,506–508creatingcryptographicallyrandomnumber,521–522determiningifuserismemberofWindowsgroup,511–513determiningspecificpermissionsatruntime,505–506disablingexecutionpermissionchecks,498–500encryption/decryptionusingdataprotectionAPI,536–538ensuringdataintegrityusingkeyedhashcode,530–533impersonatingWindowsusers,517–520inspectingassembly'sevidence,508–510limitingpermissionsgrantedtoassembly,502–503protectingsensitivestringsinmemory,533–536restrictingwhichuserscanexecutecode,514–517runtimegrantingspecificpermissionstoassembly,500–501verifyinghashcodes,528–530viewingpermissionsrequiredbyassembly,503–505sendinge-mailusingSMPT,455–458threads/processes/synchronization,129–181creatingthread-safecollectioninstance,173–174ensuringonlyoneinstanceofapplicationexecuting,179–181uploadingdataoverHTTPorFTP,446ControlPolicyelement,SecurityPermissionclass,499ControlPrincipalelement,SecurityPermissionclass,515,518Control.
Regionproperty,397–400controls.
SeealsoWindowsFormscontrolscreatingirregularlyshapedformorcontrol,397–399gettinghandleforcontrol/window/file,543–545usingActiveXcontrolin.
NETclients,556–557ControlspropertyAddmethod,345addingcontrolstoformsatruntime,345processingallcontrolsonforms,349Convertclass,59Convertmethod,Encodingclass,56converting,281–284ConvertTimemethod,74–75ConvertTimeBySystemTimeZoneIdmethod,74–75640INDEXConvertTimeFromUtcmethod,74ConvertTimeToUtcmethod,74CopyDirectorymethod,FileSystemclass,192CopyFilemethod,FileSystemclass,192CopyFromScreenmethod,Graphicsclass,405copying,190–193copyingtypeinstances,567–571copying/moving/deletingfile/directory,190FileSystemInfoclassand,186findingfilesmatchingwildcardexpressions,211GetDirectoriesmethod,211GetFilesmethod,211methods,191performingfilesystemoperations,183propertiesandclasses,184Refreshmethod,186retrievingfile/directory/driveinformation,184settingfileordirectoryattributes,189usingDirectoryclassinstead,188CopyTomethod,79,191countcalculations,245–246Countmethod,243–246Countproperty,248Covington,MichaelA.
,181CreatemethodDirectoryInfoclass,191FileInfoclass,191HashAlgorithmclasscalculatinghashcodeoffiles,526calculatinghashcodeofpassword,524testingtwofilesforequality,213KeyedHashAlgorithmclass,531RandomNumberGeneratorclass,521WebRequestclass,447XmlReaderclass,285–287CreateAdaptermethod,317,331–332CreateCommandfactorymethod,312CreateCommandmethod,312,331CreateConnectionfactorymethod,331CreateCustomTimeZonemethod,74,75Createdevent,226CreateDirectorymethod,FileSystemclass,192CreateDomainmethod,AppDomainclass,100–101CreateInstancemethod,AppDomainclass,109CreateInstanceAndUnwrapmethod,AppDomainclass,109CreateInstanceFrommethod,AppDomainclass,109CreateInstanceFromAndUnwrapmethod,AppDomainclass,107–109CreateParametermethod,317,331CreatePromptproperty,SaveFileDialogclass,222CreateShortcutmethod,WshShellclass,627CreateSubdirectorymethod,DirectoryInfoclass,185–191CreateSubKeymethod,RegistryKeyclass,616CreateTextmethodFileclass,200FileInfoclass,191CreationTimeproperty,185CredentialCacheclass,453–455CredentialspropertySmtpClientclass,455WebClientclass,453WebRequestclass,452–453creditcardnumber,regularexpressions,64,67criticalsectionofcode,155CrossProcessvalue,MemoryProtectionScopeenumeration,537CryptGenRandomfunction,521CryptoAPI,26cryptographicserviceprovider.
SeeCSPcryptography.
Seealsoencryptioncalculatinghashcodeoffiles,526–528calculatinghashcodeofpassword,522–526creatingcryptographicallyrandomnumber,521–522description,495encryption/decryptionusingdataprotectionAPI,536–538ensuringdataintegrityusingkeyedhashcode,530–533furtherreadingon,496protectingsensitivestringsinmemory,533–536verifyinghashcodes,528–530CryptoServiceProviderclasses,523CSP(cryptographicserviceprovider)creatingstrong-namedkeypairs,26givingstrongnametoassemblies,28CultureInfoclass,587Currentmember,576Currentpropertyimplementingenumerabletypeusingcustomiterator,575–577inspectingassembly'sevidence,508641INDEXMoveNextmethod,576Resetmethod,576Currentproperty,IEnumerator,576CurrentConfigfield,RegistryKeyclass,615CurrentCulturemethod,CultureInfoclass,587CurrentDirectoryproperty,Environmentclass,606currentElementelement,274CurrentPrincipalproperty,ThreadclassimpersonatingWindowsusers,518restrictingwhichuserscanexecutecode,514–515CurrentUICultureproperty,Threadclass,371CurrentUserfield,RegistryKeyclass,615CurrentUservalue,DataProtectionScopeenumeration,537CursorLeftproperty,Consoleclass,23CursorSizeproperty,Consoleclass,23CursorTopproperty,Consoleclass,23CursorVisibleproperty,Consoleclass,23customattributeclasses,124customattributescreatingcustomattributes,124–126inspectingvalueofcustomattributesatruntime,127–128customeventarguments,593–595customexceptionclasses,589–593customiterators,561,575–582customtypesimplementingcloneabletype,567–571implementingserializabletypes,561–567CustomExceptionexception,591DDelement,regularexpressions,62delement,regularexpressions,62datadisplayingcollectiondatausingpaging,254readingandwritingdatafromstreams,183sortingdatausingLINQ,239dataaccess,167–169dataadapters,331dataintegrity,530–533datamanipulation,51–97convertingbinarydatato/fromBase64array,59convertingdatesandtimesacrosstimezones,73–77convertingvaluetypesto/frombytearrays,56–58copyingcontentsofcollectiontoarray,79–80creatingDateTimeobjectsfromstrings,68creatinggenerictype,86–89encodingstringusingalternatecharacterencoding,54–56manipulatingcontentsofStringobject,51–53manipulatingorevaluatingconentsofarray,80–84mathematicallymanipulatingDateTimeobjects,70readinguserinputfromWindowsconsole,92–95sortingcontentsofarrayorArrayListcollection,77–78storingserializableobjectwithstatetofile,89–92usingcompiledregularexpressions,65–68usingstronglytypedcollection,84–86dataobjectclasses,338–339dataobjects,344dataparameterclasses,331Dataproperty,DragEventArgsclass,380DataProtectionAPI.
SeeDPAPIdataproviderscommandclasses,312connectionstringbuilderclasses,307creatingdatabaseconnectionstringprogrammatically,307datareaderclasses,320databaseconnectionclasses,301factoryclasses,331interfaces,330datareaderclasses,320–321,331datareaders,320–322datasources,299datastructures,87databaseaccess,299–341connectingtodatabases,301–303connectionpooling,304–306creatingdatabaseconnectionstringprogrammatically,306creatingdatabaseconnections,301dataobjectclasses,generatingfromcommandline,338–339databaseconnectionstringscreatingprogrammatically,306–308storingsecurely,308–311databaseobjectmodels,creating,334–337642INDEXdiscoveringallinstancesofSQLServeronnetwork,340executingdatabaseoperationsasynchronously,327executingSQLcommandorstoredprocedure,311NET.
NETFrameworkdataproviders,299overview,299–300processingresultsofSQLqueryusingdatareader,320retrievingresultsofSQLqueryasXML,323SQLcommandsexecuting,311–315usingparametersin,316–319SQLqueriesobtainingXMLdocumentsfrom,323–326processingresultsofusingDataReader,320–322SQLServerdiscoveringallinstancesofonnetwork,340–341performingasynchronousdatabaseoperationsagainst,327–330storedproceduresexecuting,311–315usingparametersin,316–319storingdatabaseconnectionstringsecurely,308–311usingparametersinSQLcommandorstoredprocedure,316writingdatabase-independentcode,330–334databaseconnectionclasses,301,312databaseconnectionstrings.
Seeconnectionstringsdatabaseobjectmodels,334–337/databaseparameter,338database-independentcode,330–334databasesconnectionpooling,304–306creatingdatabaseconnections,301executingSQLcommandorstoredprocedure,311writingdatabaseindependentcode,330writinggenericADO.
NETcode,330DataContextclass,336DataProtectionScopeenumeration,537DataRowclass,340DataSetclassIDataAdapterinterface,331loadingunnessaryassembliesintoapplicationdomains,104namespace,104DataTableclassdiscoveringallinstancesofSQLServeronnetwork,340GetFactoryClassesmethodreturningcolumns,332makingobjectsremotable,482datesandtimes,68,70DateTimeclass,68,70,75DateTimestructureadding/subtracting/comparingdatesandtimes,70AddXyzmethods,71implementingcomparabletype,572operatorssupportedby,71Systemnamespace,148,185DateTimeFormatInfoclass,69,587DateTimeOffsetobject,75DaylightNameproperty,73DbCommandclass,311DbCommand.
ExecuteReadermethod,320DbCommand.
Parameters.
Addmethod,316DbConnectionclass,301DbConnectionStringBuilderclass,306–307DbDataReaderclass,313,320/dbmlparameter,338DbParameterclass,316DbParameterCollection,312DbProviderFactoriesclass,332DbProviderFactories.
GetFactorymethod,332DbProviderFactories.
GetFactoryClassesclass,332DbProviderFactoryclass,331,332DbTransaction,312DbType,317,331DCOM(DistributedComponentObjectModel),437DEBUGsymbol,21Decimaltype,56,57,59declarativesecurity,514decompilation,39–40Decrementmethod,Interlockedclass,168Decryptmethod,FileInfoclass,191deepcopy,79,568Defaultproperty,Encodingclass,54DefaultCredentialsproperty,CredentialCacheclass,453DefaultPageSettingsproperty,PrintDocumentclass,420define/defineswitch,19,20delaysigningassemblies,31delaysign/delaysignswitch,31643INDEXDelegateAsyncStateparameter,135delegatesAddressOfoperator,130callingunmanagedfunctionthatusescallback,548executingmethodsasynchronously,133implementingObserverpattern,597–598DELETEcommand,313Deletemethod,191Deletedevent,226DeleteDirectorymethod,FileSystemclass,192DeleteFilemethod,FileSystemclass,192DeleteSubKeymethod,RegistryKeyclass,616DeleteSubKeyTreemethod,RegistryKeyclass,616DeleteValuemethod,RegistryKeyclass,616deletingfilesordirectories,190–193delimitedfiles,281–284Delimitersproperty,TextFieldParserclass,205Demandmethod,PrincipalPermissionclass,514demandsdeclarative,514permission,495Descendantsmethod,274Descendingkeyword,239Descriptioncolumn,332Descriptionproperty,NetworkInterfaceclass,439deserializaiton,590deserialization,562,563Deserializemethod,89desktopcreatingshortcutson,626–629performingscreencapture,405–406destructor,582dialogboxes,221–223Dictionarycollection,85digestauthentication,453digitalsignatures,authenticode,32–37Directionproperty,317directoriescalculatingsizeofallfilesindirectory,194–195copying/moving/deletingfile/directory,190–193determiningifpathisdirectoryorfile,215–216modifyingACLoffile/directory,229–232performingfilesystemoperations,183retrievingfile/directory/driveinformation,184–188settingfileordirectoryattributes,189–190Directoryclassdeterminingifpathisdirectoryorfile,215Existsmethod,215findingfilesmatchingwildcardexpressions,211GetAccessControlmethod,230GetCurrentDirectorymethod,217GetLogicalDrivesmethod,219modifyingACLoffile/directory,230retrievingfile/directory/driveinformation,188SetAccessControlmethod,230SetCurrentDirectorymethod,217workingwithrelativepaths,217Directoryproperty,FileInfoclass,185directoryrecipes,183directorytree,197–200DirectoryExistsmethod,FileSystemclass,216DirectoryInfoclass,189,192,194DirectoryNameproperty,FileInfoclass,185DirectoryNotFoundException,186DirectorySecurityclass,230DirectShow,415–417DisallowPublisherPolicyproperty,AppDomainSetupclass,101DisplayNameobject,624DisplayNameproperty,74,624disposableclasses,582–585disposableobjects,582Disposemethod,146,301,321,534,582–583,616Disposepattern,582Distinctclause,235DistributedComponentObjectModel(DCOM),437DLL,540–542DllImportAttribute,540,549–550DNS(DomainNameSystem),458–459Dnsclass,458Documentobject,391DocumentObjectModel(DOM),263documentprintinginanyapplication,420multipage,423–426showingdynamicprintpreview,428–431simpledocuments,420–422Documentproperty,382,421,428–429644INDEXDocumentCompletedevent,WebBrowsercontrol,383DocumentTextproperty,WebBrowsercontrol,382DoDragDropmethod,Controlclass,379–380DOM(DocumentObjectModel),263DomainNameSystem(DNS),458–459Domainproperty,ProcessStartInfoclass,175domains,100–102doublebuffering,407–408doublequotes("),19DoubleBufferedproperty,407DownloadDatamethod,WebClientclass,444DownloadDataAsyncmethod,WebClientclass,444DownloadDataCompletedevent,WebClientclass,444DownloadFilemethod,My.
Computer.
Networkclass,443,444,446DownloadFilemethod,WebClientclass,444DownloadFileAsyncmethod,WebClientclass,444DownloadFileCompletedevent,WebClientclass,444downloadingdataoverHTTPorFTP,443–446fileandprocessingusingstream,446–448gettingHTMLpagefromsiterequiringauthentication,452–454DownloadStringAsyncmethod,WebClientclass,444DownloadStringCompletedevent,WebClientclass,444DoWorkevent,141–145DoWorkEventArgsclass,142DPAPI(DataProtectionAPI)encryption/decryptionusingdataprotectionAPI,536–538protectingsensitivedatainmemory,533DPAPIProtectedConfigurationProviderclass,309drag-and-dropfunctionality,379DragDropevent,Controlclass,379–380DragEnterevent,Controlclass,379–380DragEventArgsclass,380DrawImagemethod,Graphicsclass,420DrawStringmethod,Graphicsclasscreatingscrollableimage,403printingsimpledocument,420printingwrappedtext,426DriveInfoclassaccessingproperties,186AvailableFreeSpaceproperty,219–220determiningfreespaceondrive,219example,220GetDrivesmethod,219IsReadyproperty,186drivesaccessingunavailablenetworkdrive,219determiningfreespaceondrive,219–220retrievingfile/directory/driveinformation,184–188DriveTypeenumeration,185DriveTypeproperty,DriveInfoclass,185DumpStatemethod,ConditionalAttributeclasss,21,22Dwordvalue,613dynamicprintpreview,428–431DynDatafield,RegistryKeyclass,615Eeoption,caspolcommand,498–500eswitch,CertificateCreationtool,38EDM(EntityDataModel),233Effectproperty,DragEventArgsclass,380element,regularexpressions,63ElementAtmethod,253ElementHostcontrol,559ElementHost.
Childproperty,559elementsaccessingprogramelementnamedasVB.
NETkeyword,25changingvalueof,271–272insertingintoXMLdocuments,269–270queryingforinspecificXMLnamespaces,276–278removing,272–274replacing,272–274searchingXMLdocumentforelementsusingXPath,278ELEMENTSkeyword,323Elementsmethod,274ElifHHHElifdirective,19EllipseShapecontrol,400–403ElseHHHElsedirective,19e-mail,64,455–458Employeeclass,294,564–568Employeenode,273Employeeobject,266,291EmployeeRosterclass,294645INDEXEmployeeRosterelement,295EmployeeRosterobject,291Employeesproperty,576Employeesrootnode,279EmptyTypesfield,Typeclass,121EnableRaisingEventsproperty,FileSystemWatcherclass,226EnableSslproperty,SmtpClientclass,455encodingcommonstringencodings,201convertingbinarydatato/fromBase64array,59NET.
NETFrameworkclasses,200strings,54–56UTF-16encoding,56Encodingclass,200ASCIIproperty,456calculatinghashcodeofpassword,524Convertmethod,56Defaultproperty,54GetBytesmethod,54GetEncodingmethod,54GetStringmethod,54sendinge-mailusingSMPT,456Encryptmethod,FileInfoclass,191encryption.
SeealsocryptographyCSP(cryptographicserviceprovider),26entropy,537protectingsensitivestringsinmemory,533–536usingdataprotectionAPI,536–538EndAcceptTcpClientmethod,TcpListenerclass,466EndExecuteNonQuerymethod,SqlCommandclass,327,328EndExecuteReadermethod,SqlCommandclass,327,328EndExecuteXmlReadermethod,SqlCommandclass,327,328EndGetContextmethod,HttpListenerclass,449EndifHHHEndifdirective,19–20EndInvokemethod,133–134EndOfDataproperty,TextFieldParserclass,205endpoint,462EndPrintevent,420EndReadmethod,FileStreamclass,208ensuringdataintegrityusingkeyedhashcode,530–533Entermethod,Monitorclass,154–155EntityDataModel(EDM),233entropy,537EntryPointportion,DllImportAttribute,540Enumclass,119enumerabletypes,575–582enumerationsAttributeTargetsenumeration,125ConsoleKeyenumeration,93RegexOptionsenumeration,66enumerator,575EnumWindowsfunction,548Environmentclass,606–609accessingruntimeenvironmentinformation,605–609CommandLineproperty,17ExpandEnvironmentVariablesmethod,609GetCommandLineArgsmethod,17GetEnvironmentVariablemethod,609GetEnvironmentVariablesmethod,609methods,606properties,606retrievingvalueofenvironmentvariable,609–610SpecialFolderenumeration,607environmentvariables,609–610EnvironmentVariableTargetenumeration,609equality,212–214equality(=)operator,71Equalsmethod,44Errorevent,226ErrorDialogproperty,ProcessStartInfoclass,175ErrorLineproperty,TextFieldParserclass,205–206ErrorLineNumberproperty,TextFieldParserclass,205–206ErrorProvidercomponent,377–379errorsretrievingunmanagederrorinformation,549validatinguserinputandreportingerrors,377–379escapingcharacters,19eventarguments,593–595Eventidiom,598eventlogdescription,610writingeventtoWindowseventlog,610–612eventlog,Windows,610–612Eventpattern,594–598EventArgsclassimplementingcustomeventargument,593–594implementingObserverpattern,598–599646INDEXEventLogclass,610–611EventLogproperty,ServiceBaseclass,620EventLogEntryTypeenumeration,610EventResetModeenumeration,160eventsFileSystemWatcherclass,225–226manipulatingstatebetweensignaledandunsignaled,159synchronizingmultiplethreadsusingevent,159–162writingeventtoWindowseventlog,610–612EventWaitHandleclass,159–160evidenceassemblyevidencecollection,508description,101,495evidenceclassesgeneratingidentitypermissions,507hostevidencecollection,508inspectingassembly'sevidence,508–510specifying,101evidenceclasses,508–510Evidenceproperty,Assemblyclass,508Exceptmethod,257exceptionclasses,589–593exceptionsApplicationException,589ArgumentException,79ArgumentNullException,590ArgumentOutOfRangeException,52,590CannotUnloadAppDomainException,116FormatException,590InvalidCastException,79,119IOException,219MalformedLineException,205MissingMethodException,102SerializationException,113ExceptionStateproperty,ThreadAbortExceptionclass,171Exchangemethod,Interlockedclass,168ExecuteAssemblymethod,AppDomainclass,102–103,109ExecuteAssemblyByNamemethod,AppDomainclass,102–103ExecuteNonQuerymethod,311–313ExecuteOracleNonQuerymethod,313ExecuteOracleScalarmethod,313ExecuteReadermethod,311–313,320ExecuteScalarmethod,311–313ExecuteXmlReadermethod,313,323–324ExecuteXmlReadermethod,SqlCommandclass,323–324Executionelement,SecurityPermissionclass,499executionpermissions,498–500ExecutionCheckOffmethod,499ExecutionCheckOnmethod,499Existsmethod,215Existsproperty,185–186,215Exitmethod,Monitorclass,154,155ExpandEnvironmentVariablesmethod,606–609Explicitproperty,LayoutKindclass,546ExtensibleApplicationMarkupLanguage(XAML),391extensionmethods,45–47Extensionproperty,FileInfoclass,185ExtensionAttributeattribute,45–46Ffactoryclasses,331Familiesproperty,392FieldCountproperty,320FieldOffsetAttributeclass,546fields,562FieldWidthsproperty,TextFieldParserclass,205–206FileclassCreateTextmethod,200determiningifpathisdirectoryorfile,215Existsmethod,215Existsproperty,215GetAccessControlmethod,230modifyingACLoffile/directory,230OpenTextmethod,200retrievingfile/directory/driveinformation,188SetAccessControlmethod,230filedialogboxes,221–223FileSelectionscreen,SignTool,33filesystem,225–227FileTransferProtocol(FTP),443–446FileAttributesenumeration,185FileInfoclassAttributesproperty,189copying/moving/deletingfile/directory,190FileSystemInfoclassand,186findingfilesmatchingwildcardexpressions,211Lengthproperty,194linkingdataobjectstocontrols,347647INDEXmethods,191performingfilesystemoperations,183propertiesandclasses,184Refreshmethod,186retrievingfile/directory/driveinformation,184settingfileordirectoryattributes,189usingFileclassinstead,188FileIOPermissionclass,223–224,503FileLoadExceptionclass,30,500–501FileNamepropertyOpenFileDialogclass,221ProcessStartInfoclass,175SaveFileDialogclass,222FileNamescollection,221FileNotFoundExceptionFileStreamclass,89,200–203FileSystemWatcherclass,225IOI/Ooperations,183IOException,219loadingassemblyintocurrentapplicationdomain,99MemoryStreamclass,56,568NotifyFiltersenumeration,226Pathclass,214–218,229readingproperties,186Streamclass,87,444,531StreamReaderclass,446StreamWriterclass,200filescalculatinghashcodeof,526–528calculatingsizeofallfilesindirectory,194–195copying/moving/deleting,190–193temporary,creating,218–219FileSecurityclass,230methodsforadding/removingACLs,230FileStreamclassEndReadmethod,208Handleproperty,543readingandwritingbinaryfiles,203readingandwritingtextfiles,200readingfilesasynchronously,208System.
IO,89FileSystemclassMyobject,183–184,350My.
Computer,184FileSystemEventArgsclass,226FileSystemWatcherclass,225–226FileVersionInfoclass,196FileWebRequestclass,447FilgraphManagerclass,415Fillmethod,TreeViewcontrol,198FilterpropertyFileSystemWatcherclass,226OpenFileDialogclass,221filteringdata,240–241filters,211–212Finalizemethod,583Finallyblock,155Finallyclause,583Finallystatement,589FinalReleaseComObjectmethod,Marshalclass,553–554Findmethod,Certificatesclass,453FindSystemTimeZoneByIdmethod,74FindTypesmethod,116,117Firstmethod,253,254first-nameattribute,274FlowDirectionproperty,FlowLayoutPanelcontainer,368FlowLayoutPanelcontainer,368FolderBrowserDialogclass,221,222FontFamilyclass,392FontFamilyobjects,392fonts,392–394ForEachloop,576Forloop,576For.
.
.
Nextloop,235FORXMLAUTOclause,323FORXMLclause,323–324FORXMLEXPLICITclause,324foregroundthreads,133ForegroundColorproperty,Consoleclass,23FormclassBackgroundImageproperty,399ControlBoxproperty,372creatingWindowsFormsapplication,5DoubleBufferedproperty,407FormBorderStyleproperty,372Handleproperty,543–544Languageproperty,370Loadevent,198Localizableproperty,370MaximizeBoxproperty,372MdiChildrenproperty,353MdiParentproperty,353MinimizeBoxproperty,372MouseMoveevent,395Painteventhandler,395,407Regionproperty,397–398648INDEXFormclass,System.
Windows.
Formsnamespace,5formatargument,586Formatmethod,Stringclass,586formatstring,586FormatExceptionclass,69,590FormatMessagefunction,549,550formatProviderargument,586–587formattabletype,586formattedstrings,586formatters,89,562FormBorderStyleproperty,372FormCollectionclass,350Form.
MouseMoveevent,395Form.
Painteventhandler,395,407Form.
Regionproperty,397formscreatingirregularlyshapedformorcontrol,397–399creatingWindowsFormsapplicationfromcommand-line,5–8Formsclass,Myobject,183Formsrecipes,344freespace,219–220Friendmembers,9Fromclause,234–242,251,259–260Fromproperty,MailMessageclass,456FromBase64CharArraymethod,Convertclass,59FromBase64Stringmethod,Convertclass,59FromDaysproperty,TimeSpanstructure,148FromFilemethod,Imageclass,409FromSerializedStringmethod,74FTP(FileTransferProtocol),443–446FtpWebRequestclass,447FullUnicodeencoding,201FullNameproperty,185FullTrustpermission,497–498,508fullyqualifiedname,assemblies,98functionalconstruction,265,269functionscallingfunctionsdefinedinunmanagedDLL,540–542callingunmanagedfunctionthatusescallback,548–549callingunmanagedfunctionthatusesstructure,545–547gettinghandleforcontrol/window/file,543–545/functionsparameter,338GGAC(GlobalAssemblyCache),497controllingversioningforremoteobjects,491–492managingGlobalAssemblyCache,38–39specifyingpublisherpolicy,99gacutil.
exe(GlobalAssemblyCachetool),38garbagecollector,582GCclass,582,583GC.
SuppressFinalizemethod,583GDI(GraphicsDeviceInterface),391GDI32.
dll,540GenerateFromFilemethod,556GenerateFromTypeLibrarymethod,556genericcollections,85generictypes,86–89Getaccessor,XmlSerializerclass,290GetAccessControlmethod,230GetAddressBytesmethod,439GetAdjustmentRulesmethod,74GetAllNetworkInterfacesmethod,438,441GetAssemblyEnumeratormethod,508GetBoundsmethod,Imageclass,394GetBytesmethodBitConverterclass,56Encodingclass,54RandomNumberGeneratorclass,521GetCommandLineArgsmethod,Environmentclass,17,607GetConstructormethod,Typeclass,121GetContextmethod,HttpListenerclass,449GetCurrentmethod,WindowsIdentityclass,511GetCurrentDirectorymethod,Directoryclass,217GetCurrentProcessmethod,Processclass,178GetCustomAttributesmethod,ICustomAttributeProviderinterface,127GetDatamethod,101,113–114,380GetDataSourcesmethod,340GetDataTypeNamemethod,320GetDirectoriesmethod,DirectoryInfoclass,185,211GetDirectoryInfomethod,184GetDirectoryNamemethod,Pathclass,215GetDriveInfomethod,184GetDrivesmethod,DriveInfoclass,185,219GetEncodingmethod,54GetEnumeratormethod,508,575–577649INDEXGetEnvironmentVariablemethod,Environmentclass,607,609GetExtensionmethod,Pathclass,215GetFactorymethod,332GetFactoryClassesmethod,332GetFieldTypemethod,320GetFileNamemethod,Pathclass,214GetFileNameWithoutExtensionmethod,Pathclass,215GetFilesmethod,185,211GetFolderPathmethod,Environmentclass,607GetForegroundWindowfunction,543GetFullPathmethod,Pathclass,215,217GetHashCodemethod,44GetHostEntrymethod,Dnsclass,458GetHostEnumeratormethod,Evidenceclass,508GetInvalidPathCharsmethod,Pathclass,215GetIPPropertiesmethod,NetworkInterfaceclass,439GetIPv4Statisticsmethod,NetworkInterfaceclass,439GetIsNetworkAvailablemethod,NetworkInterfaceclass,440GetLastWin32Errormethod,Marshalclass,549–550GetLifetimeServicemethod,MarshalByRefObjectclass,490GetLogicalDrivesmethodDirectoryclass,219Environmentclass,607GetNamemethod,321GetNestedTypemethod,Typeclass,116GetNestedTypesmethod,Typeclass,116,117GetNonZeroBytesmethod,RandomNumberGeneratorclass,521GetObjectmethod,ResourceManagerclass,11GetObjectDatamethod,563,590GetOracleLobmethod,321GetOracleMonthSpanmethod,321GetOracleNumbermethod,321GetOrdinalmethod,321GetParentPathmethod,FileSystemclass,215GetPathRootmethod,Pathclass,215GetPhysicalAddressmethod,NetworkInterfaceclass,439GetPortNamesmethod,SerialPortclass,228GetPrivateProfileStringmethod,540,542GetProcessByIdmethod,Processclass,178GetProcessesmethod,Processclass,178GetProcessesByNamemethod,Processclass,178GetRandomFileNamemethod,Pathclass,229GetResponseStreammethod,WebResponseclass,447GetSchemaTablemethod,321Get/Setpropertyaccessors,290GetSqlBytemethod,321GetSqlDecimalmethod,321GetSqlMoneymethod,321GetStoremethod,223,224,225GetStringmethodEncodingclass,54ResourceManagerclass,11GetSubKeyNamesmethod,RegistryKeyclass,616GetSystemTimeZonesmethod,74GetTempFileNamemethod,Pathclass,218,229GetThumbnailImagemethod,Imageclass,409GetTypemethod,116–117,554GetUnderlyingTypemethod,Enumclass,119GetUserStoreForDomainmethod,IsolatedStorageFileclass,225GetUtcOffsetmethod,74GetValuemethod,612–616GetValueKindmethod,RegistryKeyclass,616GetValueNamesmethod,616GetVersionExfunction,Kernel32.
dll,545GetVersionInfomethod,FileVersionInfoclass,196GetWindowTextfunction,543GetXmlNamespacemethod,277GetXyzmethods,321,564GlobalAssemblyCache.
SeeGACglobalattributes,498GoBackmethod,WebBrowsercontrol,383GoForwardmethod,WebBrowsercontrol,383GoHomemethod,WebBrowsercontrol,383grantset,495GraphicsclassCopyFromScreenmethod,405DrawImagemethod,420DrawStringmethod,403,420,426printingsimpledocument,420GraphicsDeviceInterface(GDI),391Graphics.
DrawStringmethod,403,426GraphicsPathclassCloseAllFiguresmethod,398creatingirregularlyshapedformorcontrol,398650INDEXhittestingwithGraphicsPathobject,397IsVisiblemethod,394namespace,394GraphicsPathproperty,398GraphicsPath.
CloseAllFiguresmethod,398GraphicsPath.
IsVisiblemethod,394greaterthan(>)operator,71greaterthanorequalto(>=)operator,71GroupJoinclause,280groupqueryresults,248–250performingaverageandsumcalculations,243–244performingcountcalculations,245–246performinggeneralaggregateoperations,242–243performingminandmaxcalculations,246–247querydatafrommultiplelocations,250–253queryinggenericcollection,234–236queryingnongenericcollection,236retrievingsubsetofcollection,253–254sortingdatausingLINQ,239usingimplicitlytypedvariables,40–41groups,511–513Guestvalue,WindowsBuiltInRoleenumeration,512GuidAttributeclass,558HHandleproperty,415,543–544handles,543–545HasExitedproperty,Processclass,178HasExtensionproperty,215HasFieldsEnclosedInQuotesproperty,TextFieldParserclass,205HashAlgorithmscreen,SignTool,36hashcodesensuringdataintegrityusingkeyedhashcode,530–533offiles,calculating,526–528hashingalgorithmimplementations,523ofpassword,calculating,522–526VerifyB64Hashmethod,529VerifyByteHashmethod,529verifying,528–530HashAlgorithmclasscalculatinghashcodeoffiles,526–527calculatinghashcodeofpassword,522–523ComputeHashmethod,213,524–526,531Createmethod,213,524–526ensuringdataintegrityusingkeyedhashcode,531testingtwofilesforequality,212Hashtableclass,174HasMorePagesproperty,424HasMorePagesproperty,PrintPageEventArgsclass,423–424HasRowsproperty,320HasShutdownStartedproperty,Environmentclass,606help,381–382HelpKeywordproperty,HelpProvidercomponent,381–382HelpNamespaceproperty,HelpProvidercomponent,382HelpNavigatorproperty,HelpProvidercomponent,381HelpProvidercomponent,381–382HireDateelements,273hittesting,394–397HKEY_CURRENT_USERregistrykey,175HKEY_XYZregistrykeys,613HMACclass,531HMACSHA1class,531hostevidencecollection,Evidenceclass,508hostnames,458–459Hostproperty,SmtpClientclass,455Hourproperty,69HTMLpages,263,452–454HtmlDocumentclass,382HTTPdownloadingdataover,443–446respondingtoHTTPrequestsfromapplication,448–452uploadingdataover,446HTTP/HTTPSURL,regularexpressionfor,64HttpListenerclass,450HttpListenerContextclass,449HttpListenerException,449HttpListenerPrefixCollection,449HttpListenerRequestclassHttpListenerResponseclass,449ICredentialinterface,444IPAddressclass,460NetworkCredentialclass,453respondingtoHTTPrequestsfromapplication,449SocketPermissionclass,500WebClientclass,443–447WebExceptionclass,447WebPermissionclass,500651INDEXWebRequestclass,452WebResponseclass,452HttpListenerResponseclass,449HttpWebRequestclass,447HttpWebRequest.
ClientCertificatescollection,453HypertextMarkupLanguage(HTML)page,263IIAsyncResult,133–134,327IBasicAudiointerface,415ICloneableinterface,567–569ICloneablemethod,568ICloneable.
Clonemethod,568ICollectioninterfaceCopyTomethod,79IsSynchronizedproperty,173SyncRootproperty,173–174ICollection(OfT)interface,243–247IComparableinterface,77,571–572IComparable.
CompareTomethod,572IComparable(OfT)interface,571IComparerinterface,365,571–572IComparerinterface,System.
Collections,77Iconproperty,NotifyIconcontrol,376ICredentialinterface,444ICredentialsByHostinterface,455ICustomAttributeProviderinterface,127Idproperty,74,439IDataAdapterinterface,331IDataObjectinterface,380IDataParameterinterface,316,331IDataReaderinterface,320,331IDataRecordinterface,320IDbCommandinterface,311,313,316,331IDbConnectioninterface,301,312,331identitypermissions,507IDisposableinterface,321creatinggenerictype,87Disposemethod,582,616IDataReaderinterface,321IDbConnectioninterface,301implementingdisposableclass,582processingresultsofSQLqueryusingdatareader,320protectingsensitivedatainmemory,534RegistryKeyobjects,616IDisposable.
Disposemethod,582,616IEnumberable(OfT)objects,273IEnumerableinterfacedisplayingcollectiondatausingpaging,254GetEnumeratormethod,575–577implementingenumerabletypeusingcustomiterator,575–577queryingnongenericcollection,236IEnumerableobjects,234IEnumerable(OfDataRow)collection,315IEnumerable(OfT)method,274IEnumerable(OfT)object,259IEnumerable(OfXElement)method,274IEnumeratorinterface,576–577IfHHHIfdirective,19–20IfHHHIf.
HHHEndIfconstruct,19–22IFormatProviderinterfacecreatingDateTimeobjectsfromstrings,68implementingformattabletype,586IFormattableinterface,586–587IFormattableobject,586IFormatterinterface,89IIdentityinterface,511IIS,488–489Ildasm.
exe(MSILDisassemblertool),9ILeaseinterface,490Imageclass,394,409Image.
FromStreammethod,447Image.
GetThumbnailImagemethod,409imagesprintingsimpledocument,420scrollable,403–405thumbnailforexistingimage,409IMediaControlinterface,413–415immutabilityofobjectsevidenceclasses,510protectingsensitivedatainmemory,533Stringclass,52imperativesecurity,514Impersonatemethod,WindowsIdentityclass,517–518impersonation,517–520implementing,561–603implicittyping,40–41Importsstatement,276InAttribute,546Includeattribute,15Incrementmethod,Interlockedclass,168inequality()operator,71inequality(NOT)operator,20Infiniteproperty,Timeoutclass,146,148652INDEXinformationretrievalretrievingfileversioninformation,196–197,212retrievingfile/directory/driveinformation,184–188inheritanceaccessingtypesusingCOMclients,558controllinginheritanceandmemberoverridesusingCAS,506–508GetTypemethod,119InheritanceDemandvalue,SecurityActionenumeration,506–507Inheritedproperty,125InitializeLifetimeServicemethod,MarshalByRefObjectclass,489–491initializers,41–44InitialLeaseTimeproperty,ILeaseinterface,490INNERJOIN,250InnerExceptionclass,460input.
SeeuserinputINSERTcommand,313InsertAtmethod,SecureStringclass,533installedprinters,418–420InstalledFontCollectionclass,392InstalledPrinterscollection,PrinterSettingsclass,418Installerclass,623,624InstallerCollectionclass,624Installersproperty,Installerclass,624Installutilcommand,626InstallutilRecipe15-07.
execommand,625Installutil.
exe,623instanceconstructor,562Instanceproperty,597InstanceNamecolumn,340instantiation,121inttype,57–58Integertype,59Integervalue,611IntegratedWindowsauthentication,453IntelliSensecreatingextensionmethods,46usinganonymoustypes,45usingobjectinitializers,43interfaceandpatternrecipes,561–603implementingcloneabletype,567–571implementingcomparabletype,571implementingcustomeventargument,593–595implementingcustomexceptionclass,589–593interfacesdataproviderinterfaces,330exposing.
NETcomponenttoCOM,558Interlockedclass,167–168Internetflag,permcalccommand,505Internetpermissionset,503interoperability,539–559Intersectmethod,257IntPtrclass,534,543IntPtrtype,518InvalidCastExceptioncopyingcontentsofcollectiontoarray,79testingobjecttype,119InvalidOperationException,576implementingenumerabletypeusingcustomiterator,577pingingIPaddresses,460InvalidOperationExceptionclass,510InvariantNamecolumn,332Invokemethod,ConstructorInfoclass,121IOI/Oclasses,183IObserverinterface,597IOException,219IPaddressesendpoint,462pingingIPaddresses,460–462resolvinghostnametoIPaddressusingDNS,458–459IPAddressclass,459IPGlobalPropertiesclass,439IPlugininterface,110,122IPrincipalclass,449IPrincipalinterfaceimpersonatingWindowsusers,518restrictingwhichuserscanexecutecode,514–515role-basedsecurity,511WindowsPrincipalclass,511IPStatusenumeration,460irregularlyshapedcontrols,397–399Isoperator,119IsAliveproperty,Threadclass,169–170IsAvailableproperty,NetworkAvailabilityEventArgsclass,441IsBodyHtmlproperty,MailMessageclass,456IsBusyproperty,141,383IsClosedproperty,320IsClusteredcolumn,340IsCompletedproperty,IAsyncResultinstance,134653INDEXIsDaylightSavingTimemethod,74IsDBNullmethod,321IsDefinedmethod,ICustomAttributeProviderinterface,127ISerializableinterface,563–564GetObjectDatamethod,563,590implementingcustomeventargument,594implementingcustomexceptionclass,590implementingserializabletypes,562–564ISerializable.
GetObjectDatamethod,563,590IsFinalizingForUnloadmethod,AppDomainclass,116IsGrantedmethod,498–500,505–506IsInRolemethod,WindowsPrincipalclass,511–512IsMatchmethod,Regexclass,64IsNotoperator,119IsNullableproperty,317isolatedstorage,223–225IsolatedStorageFileStreamclass,223IsolatedStoragePermissionclass,224IsPathRootedproperty,215IsPublicproperty,RegexCompilationInfoclass,66,80IsReadOnlyproperty,FileInfoclass,185IsReadyproperty,DriveInfoclass,186IsReceiveOnlyproperty,439IsSubClassOfmethod,119IsSupportedproperty,HttpListenerclass,449IsSynchronizedproperty,173ISubjectinterface,597IsVisiblemethod,394,395Itemelement,15,295Itemproperty,320iterators,575–582IVideoWindowinterface,415IVideoWindow.
Ownerproperty,415IVideoWindow.
SetWindowPositionproperty,415IWshShortcutinstance,626–627JJIT(just-in-time)compilation,66,539JITdirectorytree,197–200Joinclause,250–252,280Joinmethod,251knowingwhenthreadfinished,169–170synchronizingmultiplethreadsusingevent,161–163synchronizingmultiplethreadsusingsemaphore,166Joinqueryclause,280joiningmultipleXMLdocuments,280–281just-in-time(JIT)compilation,66,539KKeepAlive(mutex)statement,181Kernel32.
dllfile,545,550Kernell32.
dll,540keypairs,strong-named,26–27KeypropertyConsoleKeyInfoclass,93KeyedHashAlgorithmclass,531KeyAvailablemethod,Consoleclass,93KeyCharproperty,ConsoleKeyInfoclass,93keycontainer/keycontainercompilerswitch,28KeyedHashAlgorithmclassCreatemethod,531ensuringdataintegrityusingkeyedhashcode,530–531Keyproperty,531keyfile/keyfilecompilerswitch,28KeyPressevent,ComboBoxcontrol,362Killmethod,177–178MainWindowHandleproperty,543methods,177processesrunningonaremotecomputer,176startapplicationrunninginnewprocess,174–175Startmethod,174–175WaitForExitmethod,176–178LLabelclass,374Labelcontrol,392LabelTextproperty,353lambdaexpressions,47–49LanguageIntegratedQuery.
SeeLINQlanguagemodifiers,506/languageparameter,338Languageproperty,370LargestWindowHeightproperty,Consoleclass,23LargestWindowWidthproperty,Consoleclass,23Lastmethod,253LastAccessTimeproperty,185LastWriteTimeproperty,185LayoutKindclass,546lazypolicyresolutionprocess,499leaseTimeattribute,490654INDEXLengthpropertyFileInfoclass,185,194StringBuilderclass,52lessthan(<)operator,71lessthanorequalto(<=)operator,71libpath/libpathswitch,11lifetimelease,490LinkDemandsecurity,497–498LinkedListcollection,85LINQ(LanguageIntegratedQuery)APIsextendingLINQ,233castingcollectiontospecifictype,259–261comparingandcombingcollections,256–258controlqueryresults,237–238displayingcollectiondatausingpaging,254filteringdata,240–241usingimplicitlytypedvariables,40–41LINQtoXML,263–298overview,263schemascreatingfor.
NETclass,293–294generatingclassesfrom,294–295XMLdocumentschangingvalueofelementsorattributes,271–272creating,264–267insertingelementsinto,269–270joiningandqueryingmultiple,280–281queryingforelementsinspecificXMLnamespaces,276–278queryingusingLINQ,274–275queryingusingXPath,278–280removingorreplacingelementsorattributes,272–274validatingagainstschemas,285–289XMLfiles,convertingtodelimitedfiles,281–284listboxcontrol,358Listcollection,85listviewcontrol,364ListBoxclass,358–359ListBoxcontrolforcingdisplayofmostrecentlyaddeditem,358providingcontext-sensitivehelptousers,381ListViewcontrolListViewItemSorterproperty,365Sortmethod,364–365sortingListViewbyanycolumn,364ListViewItemclass,347ListViewItemComparerclass,365ListViewItemSorterproperty,ListViewcontrol,365literals,62little-endianbyteordering,56Loadevent,198Loadmethod,98–99,268,295,412,493LoadFrommethod,Assemblyclass,98–99loadingassemblyintocurrentapplicationdomaininstantiatingtypeinremoteapplicationdomain,98–100loadingunnessaryassembliesintoapplicationdomains,104–105passingdatabetweenapplicationdomains,113–115retrievingobjecttype,116testingobjecttype,119unloadassembliesorapplicationdomainsatruntime,115–116LoadSyncmethod,412LoadUserProfileproperty,ProcessStartInfoclass,175LoadWithPartialNamemethod,Assemblyclass,98Localproperty,74Localizableproperty,370localizationcreatingmultilingualforms,369–387EnglishandFrenchlocalizations,372–387LocalMachinefield,RegistryKeyclass,615LocalMachinevalue,DataProtectionScopeenumeration,537LocalNameproperty,277locks,155logicaloperators,20LogonUserfunction,518LongCountfunction,245LongRunningMethod,134LoopbackInterfaceIndexproperty,NetworkInterfaceclass,440Mmswitch,CertificateCreationtool,38MachineNameproperty,Environmentclass,606MACTripleDESalgorithmclass,531MACTripleDESclass,531MailAddressclass,456MailAddressCollectionclass,456655INDEXMailMessageclass,455–456MailReceivedEventArgsclass,594main/mainswitch,3Mainmethod,5,564,572,587,601MainWindowHandleproperty,Processclass,543makecert.
exe(CertificateCreationtool),37MakeReadOnlymethod,SecureStringclass,534MalformedLineException,205–206managedcodedescription,539RCW(runtimecallablewrapper),414managedtypes,558ManualResetEventclassclassesusedastriggers,150Resetmethod,160Setmethod,160synchronizingmultiplethreadsusingevent,159/mapparameter,338Marshalclasscallingunmanagedfunctionthatusesstructure,545FinalReleaseComObjectmethod,553–554GetLastWin32Errormethod,549–550protectingsensitivedatainmemory,534ReleaseComObjectmethod,414,554SizeOfmethod,545–546MarshalAsAttribute,546MarshalByRefclass,482marshal-by-referencetypes.
SeeMBRtypesMarshalByRefObjectclassclassesderivingfrom,106creatingtypenotderivingfrom,105GetLifetimeServicemethod,490InitializeLifetimeServicemethod,489–491makingobjectsremotable,481MBR(marshal-by-reference)types,106namespace,106registeringremotableclassesinassembly,486–488marshal-by-valuetypes.
SeeMBVtypesMaskproperty,MaskedTextBoxcontrol,359MaskedTextBoxcontrolBeepOnErrorproperty,359Maskproperty,359MaskInputRejectedevent,359restrictinginputtoTextBox,360solvinguser-inputvalidationproblems,360validatinguserinputandreportingerrors,377MaskInputRejectedevent,MaskedTextBoxcontrol,359maxcalculations,246–247Maxmethod,247MaxPoolSizesetting,304MaxCapacityproperty,StringBuilderclass,52MaximizeBoxproperty,372maxOccursattribute,286MBR(marshal-by-reference)typescontrollerclass,109description,106instantiatingtypeinremoteapplicationdomain,109passingdatabetweenapplicationdomains,113passingobjectsbyreference,107MBV(marshal-by-value)typesdescription,106instantiatingtypeinremoteapplicationdomain,109passingdatabetweenapplicationdomains,113passingMBVreferencesacrossapplicationdomains,104passingobjectsbyvalue,107MD5algorithm,523MD5CryptoServiceProviderclass,524MDI(MultipleDocumentInterface)application,352–354MdiChildrenproperty,353MdiParentproperty,353Mekeyword,155membervariable,171MemberwiseClonemethod,Objectclass,568memory,533–536MemoryProtectionScopeenumeration,537MemoryStreamclassconvertingDecimaltypetobytearray,57implementingcloneabletype,568ToArraymethod,57MemoryStreamclass,System.
IO,56MenuItemclass,347MessageBoxclass,347MessageInfoclass,131metacharacters,62metadataassemblymanifest,9creatingcustomattributes,124–126loadingassemblyintocurrentapplicationdomain,98Typeclassretrievingobjecttype,117656INDEXmethodsyntax,249MethodBaseclass,127methodscreatingasynchronousmethodtoupdateuserinterface,140–145creatingextensionmethods,45–47executingmethodasynchronously,133–140executingmethodinseparatethreadatspecifictime,147–149MicrosoftActiveXDataObjectscomponent,552MicrosoftADO.
NET,299MicrosoftIntermediaryLanguage.
SeeMSILMicrosoftSQLServer2005,129Microsoft.
VisualBasic.
FileIOnamespace,205Microsoft.
Win32namespaceRegistryclass,612–615RegistryKeyclass,612–615RegistryValueKindenumeration,613–616Microsoft.
Win32.
Registryclass,612–615Microsoft.
Win32.
RegistryKeyclass,612,615mincalculations,246–247MinPoolSizesetting,305MinimizeBoxproperty,372minOccursattribute,286Missingfield,Typeclass,554MissingMethodException,102modifiers,506Modifiersproperty,ConsoleKeyInfoclass,93modules,8–9MonitorclasscomparedtoMutexclass,163constructinginaUsingstatement,181Entermethod,154–155Exitmethod,154–155Pulsemethod,156PulseAllmethod,156synchronizingmultiplethreadsusingmonitor,154–155Synclockstatement,155Waitmethod,156monitorsdescription,155synchronizingmultiplethreadsusingmonitor,154–159threadsacquiringlocks,155mouseevents,400MouseDownevent,Controlclasscreatingmovableborderlessform,373supportingdrag-and-dropfunctionality,380MouseEventArgsclass,593MouseMoveevent,373,374,395MouseUpevent,373,374movablesprites,399–403MoveDirectorymethod,FileSystemclass,192MoveFilemethod,FileSystemclass,192MoveNextmethod,IEnumerator,576MoveTomethod,191MP3files,413MSBuild.
exe,14–17MSIL(MicrosoftIntermediaryLanguage)managedcode,539usinganonymoustypes,44–48usingimplicitlytypedvariables,40MSILDisassemblertool(Ildasm.
exe),9MSMask.
dllfile,556multilingualforms,369–387multimedia,391–435creatingirregularlyshapedformorcontrol,397–399creatingmovableshape,399–403creatingscrollableimage,403–405DirectShow,415–417findingallinstalledfonts,392–394hittestingwithshapes,394–397increasingredrawspeedwithdoublebuffering,407–408irregularlyshapedcontrols,397–399movablesprites,399–403overview,391–392printingdynamicprintpreview,428–431findinginformationaboutinstalledprinters,418–420managingprintjobs,431–435multipagedocuments,423–426simpledocuments,420–422wrappedtext,426–427screencaptures,405–406scrollableimages,403–404soundfiles,413–415systemsounds,410–411thumbnails,409–410WAVfiles,412–413MultipleDocumentInterface(MDI)application,352–354multiplethreadsasynchronouscommunicationsusingTCP,466–474executingmethodusingthreadfromthreadpool,132657INDEXsynchronizingaccesstoshareddata,167–169synchronizingmultiplethreadsusingevent,159–162usingmonitor,154–159Multiselectproperty,OpenFileDialogclass,221MustInheritclass,320MustInheritFontCollectionclass,392MustInheritkeyword,124MustInheritSystem.
Data.
Common.
DbCommandclass,311MustInheritSystem.
Data.
Common.
DbConnectionclass,301MustInheritSystem.
Data.
Common.
DbParameterclass,316mutablestrings,542Mutexclassclassesusedastriggers,150ensuringonlyoneinstanceofapplicationexecuting,179–181ReleaseMutexmethod,163synchronizingmultiplethreadsusingmutex,163mutexesensuringonlyoneinstanceofapplicationexecuting,179–181synchronizingmultiplethreadsusingmutex,163System.
GC.
KeepAlive(mutex)statement,181Myobject,183–184,350MyAttributeattributes,274My.
Computer.
Audioclass,411–413My.
Computer.
FileSystemclassCombinePathmethod,215copying/moving/deletingfile/directory,190DirectoryExistsmethod,216displayingdirectorytreeinTreeViewcontrol,200FileExistsmethod,216GetDirectoryInfomethod,184GetDriveInfomethod,184GetFileInfomethod,184GetFilesmethod,211GetParentPathmethod,215methods,192OpenTextFieldParsermethod,205OpenTextFileReadermethod,200–202OpenTextFileWritermethod,200–202ReadAllTextmethod,201retrievingfile/directory/driveinformation,187specifyinginvalidpath/directory/drive,186My.
Computer.
NetworkclassDownloadFilemethod,443–446NetworkAvailabilityChangedevent,441–443UploadFilemethod,446My.
Computer.
Portsclass,228My.
Computer.
Registryclass,613–615MyElementchildelements,274My.
Formsclass,350MyGenericTypeclass,87My.
Settingsclass,356Nnswitch,CertificateCreationtool,38Namechildelements,274Namecolumn,332Nameproperty,66,185,277,309,439namedpipes,communicatingusing,477–481NamedPipeServerStreamclass,477namespace,101,113Namespaceproperty,66,277name-valuepairs,113namingconflictswith,25conventions,124givingstrongnametoassemblies,27–29Navigatemethod,WebBrowsercontrol,383.
NETclass,293–294.
NETclassescreatingXMLschemafor,293–294generatingfromschema,294–295.
NETCompactFrameworkdataprovider,300.
NETdatatypes,286.
NETFrameworkaccessingADOobjects,552callingunmanagedfunctionthatusescallback,548dataproviders,299description,539exposing.
NETcomponenttoCOM,558–559interoperabilityfeatures,539methodoverloading,554networkingclasses,437protectedconfiguration,308rejectingpermissionsgrantedtoassemblies,502role-basedsecurity,511658INDEXsecuritypolicy,495–502softwaredevelopmentkit(SDK),tools,2unmanagedcodeinteroperabilityrecipes,539–559usingActiveXcontrolin.
NETclients,556–557usingCOMcomponentin.
NETclient,551–553.
NETFrameworksoftwaredevelopmentkit(SDK),2.
NETRemoting,106Networkclass,441NetworkAddressChangedevent,NetworkChangeclass,441–442NetworkAvailabilityChangedevent,My.
Computer.
Networkclass,441–443NetworkAvailabilityChangedevent,NetworkChangeclass,441–442NetworkAvailabilityEventArgsclass,441NetworkChangeclassdetectingchangesinnetworkconnectivity,441NetworkAddressChangedevent,441–442NetworkAvailabilityChangedevent,441–442NetworkCredentialclassgettingHTMLpagefromsiterequiringauthentication,453sendinge-mailusingSMPT,455networkingandremoting,437–492asynchronouscommunicationsusingTCP,466–474communicatingusingnamedpipes,477–481communicatingusingTCP/IP,462–466communicatingusingUDPdatagrams,474–476consumingRSSfeed,493controllinglifetimeofremoteobjects,489–491controllingversioningforremoteobjects,491–492detectingchangesinnetworkconnectivity,441–443downloadingdataoverHTTPorFTP,443–446downloadingfileandprocessingusingstream,446–448gettingHTMLpagefromsiterequiringauthentication,452–454hostingremoteobjectsinIIS,488–489makingobjectsremotable,481–486obtaininglocalnetworkinterfaceinformation,438–441pingingIPaddresses,460–462networkingclasses,.
NETFramework,437NetworkInterfaceclass,439–441GetAllNetworkInterfacesmethod,438–441methods,439–440obtaininglocalnetworkinterfaceinformation,438–440NetworkInterfaceComponentenumeration,439NetworkInterfaceTypeenumeration,439NetworkInterfaceTypeproperty,NetworkInterfaceclass,439networksdetectingchangesinnetworkconnectivity,441–443discoveringallinstancesofSQLServeronnetwork,340obtaininglocalnetworkinterfaceinformation,438–441NetworkStreamclassasynchronouscommunicationsusingTCP,466BeginReadmethod,467BeginWritemethod,466–467communicatingusingTCP/IP,462communicatingusingUDPdatagrams,474Newkeyword,44Newspaperclass,572Newspaper.
CompareTomethod,572NextResultmethod,321nodes,XMLdocumentinsertingnodesinXMLdocument,269–272searchingXMLdocumentfornodesusingXPath,278nongenericcollections,236nonremotabletypes,105,106.
Seealsoremotabletypesnonserializableobjects,105.
SeealsoserializableobjectsNonSerializedAttributeimplementingserializabletypes,562Objectclass,568ObjectDisposedException,583OperatingSystemclass,606PlatformNotSupportedException,449Randomclass,521SerializableAttributeclass,106,562,590–594Stringclass,568,586TimeSpanstructure,146,490Typeclass,79Versionclass,606659INDEXNoPrincipalvalue,PrincipalPolicyenumeration,515NOT(inequality)operator,20Notifymethod,597NotifyFilterproperty,FileSystemWatcherclass,226NotifyFiltersenumeration,226NotifyIconcontrol,376NotInheritableclass,594NotInheritablekeywordimplementingcustomeventargument,594implementingcustomexceptionclass,590Nowproperty,DateTimestructure,148NumberFormatInfoclass,587numericinput,regularexpressionfor,64Numericproperty,ListViewItemComparerclass,365OObjectargument,613Objectclass,84,116–119,568Objectinstance,599Objectreference,327ObjectRelationalDesigner(O/RDesigner),334ObjectDisposedException,583ObjectHandleclass,104,109objectsaccessingobjectsoutsideapplicationdomain,105immutabilityofobjects,52instantiatingobjectsusingreflection,121linkingdataobjectstocontrols,347–348lockingcurrentobject,155makingobjectsremotable,481–486methodsreturningTypeobjects,117retrievingobjecttype,116storingserializableobjectwithstatetofile,89–92testingobjecttype,119usingobjectinitializers,41–44Observerdesignpatterns,561observerpatterns,577–603ODBCconnectionpooling,306ODBCdataproviderconnectionpooling,306description,299ODBCDataSourceAdministratortool,306Odbcnamespace,System.
Data,299OdbcCommandclass,312OdbcConnectionclass,301OdbcConnectionStringBuilderclass,307OdbcDataReaderclass,320OdbcFactoryclass,331OdbcParameterclass,316Ofkeyword,85–86Offsetproperty,69,423OLEDBdataproviderconnectionpooling,306description,299OLEDBServices=-4;setting,306OleDbnamespace,System.
Data,299OleDbprefix,299OleDbCommandclass,312OleDbConnectionclass,301,302OleDbConnectionStringBuilderclass,307OleDbDataReaderclass,320OleDbFactoryclass,332OleDbParameterclass,316OnCompletedReadcallback,208OnContinuemethod,ServiceBaseclass,619OnCustomCommandmethod,ServiceBaseclass,619OnDeserializedAttributeattribute,563OnDeserializingAttributeattribute,563OnKeyPressmethod,ComboBoxcontrol,362OnPausemethod,ServiceBaseclass,619OnPowerEventmethod,ServiceBaseclass,619OnSerializedAttributeattribute,563OnSerializingAttributeattribute,563OnSessionChangemethod,ServiceBaseclass,619OnShutdownmethod,ServiceBaseclass,619OnStartmethod,ServiceBaseclass,619–620OnStopmethod,ServiceBaseclass,619OnTextChangedmethod,ComboBoxcontrol,OnXyzvirtualmethods,444Openmethod,191,301OpenExeConfigurationmethod,ConfigurationManagerclass,309,311OpenExistingmethod,EventWaitHandleclass,160OpenFileDialogclass,221–222OpenFormsproperty,Applicationclass,350OpenReadmethodFileInfoclass,191WebClientclass,444–447OpenReadAsyncmethod,WebClientclass,444OpenReadCompletedevent,WebClientclass,444660INDEXOpenRemoteBaseKeymethod,RegistryKeyclass,616OpenSerialPortmethod,Portsclass,228OpenSubKeymethod,RegistryKeyclass,616OpenTextmethodFileclass,200FileInfoclass,191OpenTextFieldParsermethod,FileSystemclass,192–205OpenTextFileReadermethod,FileSystemclass,192,200–202OpenTextFileWritermethod,FileSystemclass,192OpenWritemethodFileInfoclass,191WebClientclass,446OpenWriteAsyncmethod,WebClientclass,446operatingsystems,determiningifuserismemberofWindowsgroup,607OperatingSystemclass,606,607OperationalStatusproperty,NetworkInterfaceclass,439operators,DateTimeandTimeSpan,71OptionInfer,40OptionStrict,40optionalpermissionrequest,502OptionalFieldAttributeattribute,562OptionalFieldAttributeclass,562Optionsproperty,RegexCompilationInfoclass,66Optionsvalue,66Orbitwiseoperator,189O/RDesigner(ObjectRelationalDesigner),334ORoperator,20Oracledataproviderconnection-poolingfunctionality,304description,299OracleClientnamespace,System.
Data,299OracleClientFactoryclass,332OracleCommandclass,313OracleConnectionclass,301OracleConnectionStringBuilderclass,307OracleDataReaderclassdatareaderclasses,320GetOracleXyzmethods,321OracleDataReadermethod,321OracleParameterclass,316OrderByclause,239Orderelement,295OrderBymethod,239OrElseoperator,20OSVersionproperty,Environmentclass,606OSVersionInfoclass,546OSVERSIONINFOstructure,545–546out/outswitch,3OutAttribute,546OutOfMemoryExceptionproperty,409overloading,.
NETFramework,554overriding,controllinginheritanceandmemberoverridesusingCAS,506–508overuseofconditionalcompilationdirectives,20OverwritePromptproperty,SaveFileDialogclass,222Ownerproperty,IVideoWindowinterface,415PPageNumberproperty,TextDocumentclass,423paging,254Painteventhandler,395,407Panelcontrol,392–403parameterclasses,316,317,331ParameterDirectionenumeration,317ParameterizedCommandExamplemethod,317ParameterizedThreadStartdelegate,152ParameterNameproperty,317parameterscallingmethodinCOMcomponentwithoutrequiredparameters,554–555commondatatypeforparameters,331IDataParameterinterface,331ParameterscollectionAddmethod,316–317,331IDbCommandinterface,316,331Parametersproperty,312–316Parameters.
Addmethod,317Parentproperty,DirectoryInfoclass,185Parsemethod,68,268ParseExactmethod,68parsingOpenTextFieldParsermethod,FileSystemclass,192parsingcontentsofdelimitedtextfile,204TextFieldParserclass,192partitioningmethods,253/passwordparameter,338Passwordproperty,176,624passwordscalculatinghashcodeofpassword,522–526verifyinghashcodes,528–530661INDEXPathclassChangeExtensionmethod,214Combinemethod,214creatingtemporaryfiles,218generatingrandomfilenames,229GetFileNamemethod,214GetFullPathmethod,217GetInvalidPathCharsmethod,215GetRandomFileNamemethod,229GetTempFileNamemethod,218–229manipulatingstringsrepresentingfilepath/name,214methods,215workingwithrelativepaths,217Pathproperty,FileSystemWatcherclass,226pathsdeterminingifpathisdirectoryorfile,215–216manipulatingstringsrepresentingfilepath/name,214–215monitoringfilesystemforchanges,225–227relativepaths,218workingwithrelativepaths,216–218Patternproperty,RegexCompilationInfoclass,66,81patternrecipes.
SeeinterfaceandpatternrecipespatternsDisposepattern,582Eventpattern,594implementingObserverpattern,597–603implementingSingletonpattern,595–597Observerpattern,577Pausemethod,413,431people.
binfile,92people.
soapfile,92performanceconnectionpooling,304non-thread-safecollections,173usingcompiledregularexpressions,65–68PerformanceDatafield,RegistryKeyclass,615permcalccommand,504,505Permcalc.
exe,503–504permissionsassemblies,495determiningspecificpermissionsatruntime,505–506disablingexecutionpermissionchecks,498–500givingstrongnametoassemblies,27identitypermissions,507limitingpermissionsgrantedtoassembly,502–503permissiondemands,495rejectingpermissionsgrantedtoassemblies,502runtimegrantingspecificpermissionstoassembly,500–501usingisolatedfilestorage,223–225viewingpermissionsrequiredbyassembly,503–505PermissionsViewtool,503PermissionSetAttributeclass,508Personclass,587PerUserRoamingvalue,311PerUserRoamingAndLocalconfigurationsetting,311PhysicalAddressclass,439PIA(primaryinteropassembly),551–552PictureBoxcontrol,403,415PictureBox.
Handleproperty,415PictureBox.
SizeChangedevent,415pictures,403PIN,regularexpressions,64–67Pingclass,460PingCompletedevent,Pingclass,460PingCompletedEventHandlerdelegate,460pingingIPaddresses,460–462PingOptionsclass,460PInvoke,497,540pipecharacter(|),222,477PlatformInvoke,540Platformproperty,OperatingSystemclass,607PlatformNotSupportedException,449Playmethod,410–413Playerobject,413Player.
Play()method,413PlayModeparameter,412PlaySyncmethod,SoundPlayerclass,412PlaySystemSoundmethod,My.
Computer.
Audioclass,411PluginManagerclass,110Pointclass,394PolicyExceptionclassrestrictingwhichuserscanexecutecode,515runtimegrantingspecificpermissionstoassembly,500pollingdeterminingifasynchronousmethodfinished,328executingmethodsasynchronously,134662INDEXPollingExamplemethod,135Poolingsetting,305Portproperty,SmtpClientclass,455portslistingallavailableCOMports,228writingtoCOM/serialport,228–229Portsclass,My.
Computer,228PowerUservalue,WindowsBuiltInRoleenumeration,512Prefixesproperty,HttpListenerclass,449preventingdecompilationofassemblies,39primaryinteropassembly(PIA),551–552PrincipalPermissionclass,514PrincipalPermissionAttributeclass,514PrincipalPolicyenumeration,515printjobs,431–435printpreview,428–431PrintPreviewwindow,428PrintDialogclass,418–421Documentproperty,421printingsimpledocument,420–421retrievinginformationaboutprinters,418PrintDialog.
Documentproperty,421PrintDocumentclass,418–423PrintDocument.
DefaultPageSettingsproperty,420PrintDocument.
PrinterSettingsproperty,420PrintDocument.
PrintPageevent,420–423PrinterNameproperty,PrinterSettingsclass,418printers,retrievinginformationabout,418–420PrinterSettingsclass,418PrinterSettingsproperty,PrintDocumentclass,420printingmanagingprintjobs,431–435multipagedocuments,423–426multiplepagedocument,423–424printingmultiplepagedocument,423printingsimpledocument,420printingwrappedtext,426showingdynamicprintpreview,428–431simpledocument,420PrintOperatorvalue,WindowsBuiltInRoleenumeration,512PrintPageevent,420PrintPageeventhandler,424PrintPageEventArgsclass,423–424PrintPageEventArgs.
HasMorePagesproperty,423PrintPreviewControlclass,428–429PrintPreviewControlcontrol,429PrintPreviewControlproperty,429PrintPreviewControl.
Documentproperty,429PrintPreviewDialogclass,428PrintTestPagemethod,Win32_Printerclass,435Privateconstructor,569,596Privatefield,562privatekeycreatingstrong-namedkeypairs,27delaysigningassemblies,31PrivateKeyscreen,SignTool,35Privatemembers,5Privatemethods,39PrivateReadOnlydatamembers,594PrivateSharedmember,596PrivateBinPathproperty,AppDomainSetupclass,101privatePathattribute,99ProcessclassCloseMainWindowmethod,177–178gettinghandleforcontrol/window/file,543HasExitedproperty,178processesconsiderationsbeforeusingthreadpool,132defined,97startapplicationrunninginnewprocess,174–177synchronization,129terminatingprocess,177–179threadsandprocesses,129Process.
GetProcessfunction,235–252ProcessInfoclass,174ProcessNameproperty,252ProcessorCountproperty,Environmentclass,606ProcessStartInfoclassproperties,175–176protectingsensitivedatainmemory,534Process.
Threadscollection,245–246ProcessWindowStyleenumeration,176Productclassgenerating.
NETclassfromXMLschema,295serializingobjectsto/fromXML,291ProductCatalogclasscreatingXMLschemafor.
NETclass,294serializingobjectsto/fromXML,291ProductCatalog_Invalid.
xmlfilegenerating.
NETclassfromXMLschema,295validatingXMLdocumentagainstschema,289productIDvariable,265663INDEXProgressChangedevent,141–142ProgressChangedEventArgsclass,142ProgressPercentageproperty,142ProjectInstallerclass,623propertiesandclassesretrievingfile/directory/driveinformation,184TotalFreeSpaceproperty,220Protectmethod,537protectedconfiguration,.
NETFramework,308Protectedconstructor,563Protectedfield,562ProtectedFriendmembers,9Protectedmembers,5Protectedmethod,568,619ProtectedDataclass,536–537ProtectedMemoryclass,536–537protectingsensitivedatainmemory,534ProtectSectionmethod,SectionInformationclass,309ProviderNameproperty,ConnectionStringSettingsclass,309proxies,106–107Publicconstructors,590Publicfields,295,562publickeycreatingstrong-namedkeypairs,26delaysigningassemblies,31Publicproperties,594Publicvariables,290Publisherclass,507publisherpolicyDisallowPublisherPolicyproperty,101specifyinginassemblies,99PublisherIdentityPermissionAttributeclass,507Pulsemethod,Monitorclass,156PulseAllmethod,Monitorclass,156QQuartzlibrary,413,415QuartzTypeLib,415queriesgroupqueryresults,248–250querydatafrommultiplelocations,250–253querysyntax,249queryingcontrolqueryresults,237–238forelementsinspecificXMLnamespaces,276–278filteringdatausingLINQ,240–241genericcollection,234–236multipleXMLdocuments,280–281nongenericcollection,236XMLdocumentsusingLINQ,274–275XMLdocumentsusingXPath,278–280Queuecollection,79–85queuesmanagingprintqueues,431retrievinginformationfromprintqueue,435QueueUserWorkItemmethod,ThreadPoolclass,130RRandomclass,521randomfilenames,229randomnumbers,521–522RandomNumberGeneratorclass,521RBS(role-basedsecurity)description,495determiningifuserismemberofWindowsgroup,511–513interfaces,511restrictingwhichuserscanexecutecode,514–517RCW(runtimecallablewrapper)creating,552description,413generatingusingVisualStudio,552usingActiveXcontrolin.
NETclients,556–557usingCOMcomponentin.
NETclient,551–552Readmethod,92,200–201,203,285,321ReadAllTextmethod,FileSystemclass,201ReadDecimalmethod,BinaryReaderclass,203ReadFieldsmethod,TextFieldParserclass,205–206readingbinaryfiles,203–204readingfilesasynchronously,208–210textfiles,200–202userinputfromWindowsconsole,92–95ReadKeymethod,Consoleclass,92–93ReadLinemethodConsoleclass,92–93StreamReaderclass,200–201ReadStringmethod,BinaryReaderclass,203ReadToEndmethod,StreamReaderclass,201Recipe07-10.
exeEmployees.
xmlcommand,284Recipe15-05Environmentcommand,618664INDEXRectangleclasshittestingwithRectangleobject,397objectdescription,394Rectangle.
Containsmethod,394redrawspeed,407–408referencecounting,553referencetypes,107reflection,97inspectingvalueofcustomattributesatruntime,127–128instantiatingobjectsusingreflection,121Typeclassretrievingobjecttype,117Refreshmethod,186refusedpermissionrequest,502RegexclassCompileToAssemblymethod,66–67creatinginstancecompiledtoMSIL,67IsMatchmethod,64testingmultiplestrings,65ValidateInputmethod,64–65Regexclass,System.
Text.
RegularExpressions,64–65RegexCompilationInfoclass,66RegExDesigner.
NET,62RegExLib.
com,62RegexOptionsenumeration,66Regionclass,395,398Regionproperty,397,398Region.
IsVisiblemethod,394–395RegisteredWaitHandleclass,150RegisterWaitForSingleObjectmethod,ThreadPoolclass,150RegisterWellKnownServiceTypemethod,RemotingConfigurationclass,486Registryclass,615.
SeealsoMy.
Computer.
RegistryclassGetValuemethod,612readingandwritingtoWindowsregistry,612searchingWindowsregistry,615–618SetValuemethod,612registry,Windowsreadingandwritingto,612–615searching,615–618RegistryKeyclassmethods,616navigatingthroughchildsubkeys,616searchingWindowsregistry,615–618sharedfields,615RegistryKeyobject,615–616RegistryValueKindenumeration,616RegistyValueKindenumeration,613regularexpressions,62–63Regulator,The,62relativepaths,216–218RelativeSearchPathproperty,AppDomainclass,101Releasemethod,Semaphoreobject,165ReleaseComObjectmethod,Marshalclass,414,554ReleaseMutexmethod,Mutexclass,163remotableobjectscontrollinglifetimeofremoteobjects,489–491controllingversioningforremoteobjects,491–492hostingremoteobjectsinIIS,488–489makingobjectsremotable,481–486remotabletypes,109–113.
Seealsononremotabletypesremoteapplicationdomains,102–104RemoteObjectsassembly,492remoting,437–492controllinglifetimeofremoteobjects,489–491controllingversioningforremoteobjects,491–492DCOMand,437RemotingConfigurationclass,481,486Removemethod,273RemoveAccessRulemethod,FileSecurityclass,230RemoveAccessRuleAllmethod,FileSecurityclass,230RemoveAccessRuleSpecificmethod,FileSecurityclass,230RemoveAllmethod,273,533RemoveAttributesmethod,273Renamedevent,FileSystemWatcherclass,226RenamedEventArgsclass,226RenderFilemethod,IMediaControlinterface,413Renewmethod,ILeaseinterface,490renewOnCallTimeattribute,490RenewOnCallTimeproperty,ILeaseinterface,490Replacemethod,FileInfoclass,191ReplaceAllmethod,273ReplaceAttributesmethod,273ReplaceNodesmethod,273ReplaceWithmethod,273665INDEXReplicatorvalue,WindowsBuiltInRoleenumeration,512ReplyToproperty,MailMessageclass,456ReportProgressmethod,141–142Requestproperty,HttpListenerContextclass,449RequestAdditionalTimemethod,ServiceBaseclass,619requestedExecutionLevelproperty,389RequestHandlermethod,HttpListenerclass,450RequestOptionalvalue,SecurityActionenumeration,502RequestRefusevalue,SecurityActionenumeration,502Resetmethod,160,576ResetAbortmethod,Threadclass,171ResetAccessRulemethod,FileSecurityclass,230ResetColormethod,Consoleclass,24resgen.
exe(ResourceGenerator),11resourcefile,11–13ResourceGenerator(resgen.
exe),11resource/resourceswitch,11ResourceManagerclass,11Resourcesclass,Myobject,183Responseproperty,HttpListenerContextclass,449Resumemethod,Win32_Printerclass,431Resumemethod,Win32_PrintJobclass,431ResumeLayoutmethod,Controlclass,345resxformat,11–13returnvalues,113Reversemethod,46–47ReverseStringmethod,StringBuilderclass,52RichTextBoxclass,222RID(Windowsroleidentifier),512RIPEMD160algorithm,523RIPEMD160Managedclass,524RNGCryptoServiceProviderclass,521–522Roamingflag,IsolatedStorageFileclass,224role-basedsecurity,495–511.
SeeRBSRootproperty,DirectoryInfoclass,185roottestcertificate,37RowCountproperty,TableLayoutPanelcontainer,369RsaProtectedConfigurationProviderclass,309RSSfeed,493RunAsAdministrator,2RunmethodApplicationclass,5IMediaControlinterface,413ServiceBaseclass,618–623RunInstallerAttribute,623,624Runningmethod,ThreadStateclass,152runtimeaccessingruntimeenvironmentinformation,605–609determiningspecificpermissionsatruntime,505–506inspectingvalueofcustomattributesatruntime,127–128instantiatingobjectsusingreflection,121unloadassembliesorapplicationdomainsatruntime,115–116runtimecallablewrapper.
SeeRCWruntimeenvironmentinformation,605–609runtimehosts,129RunWorkerAsyncmethod,141–142RunWorkerCompletedevent,141–142SSelement,regularexpressions,63SameLogonvalue,MemoryProtectionScopeenumeration,537SameProcessvalue,MemoryProtectionScopeenumeration,537sandboxparameter,permcalccommand,504Savemethod,264–265,309,356,627SaveFileDialogclass,221–222SavePolicymethod,SecurityManagerclass,498–500scalability,301,304schemas.
SeealsoXMLschemacreatingfor.
NETclass,293–294generatingclassesfrom,294–295validatingXMLdocumentsagainst,285–289SCM(WindowsServiceControlManager),619screencapture,405–406ScriptHostObjectModel,627scrollableimages,403–405SDK(.
NETFrameworksoftwaredevelopmentkit),2,605SE_TCB_NAMEprivilege,518SearchOptionenumeration,211secretkey,ensuringdataintegrityusingkeyedhashcode,530SectionInformationclass,309666INDEXSecureStringclass,175,533–534securityandcryptography,495–537allowingpartiallytrustedcodetousestrong-namedassemblies,496–498calculatinghashcodeoffiles,526–528calculatinghashcodeofpassword,522–526CAS(codeaccesssecurity),495CLRusingevidence,101controllinginheritanceandmemberoverridesusingCAS,506–508creatingcryptographicallyrandomnumber,521–522databaseconnectionstrings,308determiningifuserismemberofWindowsgroup,511–513determiningspecificpermissionsatruntime,505–506furtherreadingon,496LinkDemandsecurity,497RBS(role-basedsecurity),495usingisolatedfilestorage,224securityidentifier(SID),512securitypolicy,.
NETFrameworkdescription,495optionalpermissionrequest,502SecurityActionenumerationInheritanceDemandvalue,506limitingpermissionsgrantedtoassemblies,502RequestMinimumvalue,501SecurityExceptionclassdeterminingspecificpermissionsatruntime,505restrictingwhichuserscanexecutecode,514runtimegrantingspecificpermissionstoassembly,500viewingpermissionsrequiredbyassembly,503SecurityIdentifierclass,512SecurityManagerclassCheckExecutionRightsproperty,498–500determiningspecificpermissionsatruntime,505SecurityPermissionclassControlPolicyelement,499ControlPrincipalelement,515–518Executionelement,499runtimegrantingspecificpermissionstoassembly,501SecurityPerssionFlag,90Selectclause,237–241,245,251,282Selectmethod,238,251SELECTqueries,321SelectedPathproperty,FolderBrowserDialogclass,221SelectFromCollectionmethod,X509Certificate2UIclass,453SelectNodesmethod,XmlDocumentclass,278SelectSingleNodemethod,XmlDocumentclass,278semaphores,165–167SendmethodPingclass,460SmtpClientclass,456SendAsyncmethod,456,460SendCompletedevent,457sequencetag,286serialport,228–229serializableclass,589serializableobjects.
Seealsononserializableobjectsimplementingcloneabletype,568MBV(marshal-by-value)types,106passingobjectsbyvalue,106–107storingwithstatetofile,89–92serializabletypes,561–567SerializableAttributeimplementingcustomexceptionclass,590implementingserializabletypes,562–563SerializableAttributeclass,106,594serializationattributes,563implementingcustomexceptionclass,590implementingserializabletypes,561–567serializingobjectsto/fromXML,290SerializationException,113SerializationFormatterpermission,SecurityPerssionFlag,90SerializationInfoclass,563–564SerializationInfo.
Get*method,564Serializemethod,89SerialPortclass,228SerialPortNamesproperty,Portsclass,228/serverparameter,338ServerNamecolumn,340ServiceControlManager(SCM),619ServiceAccountenumerator,624ServiceBaseclass,618–622creatingWindowsservice,618–623events,619methods,619667INDEXproperties,619–620RequestAdditionalTimemethod,619Runmethod,618–622ServiceBaseobjects,622ServiceBase.
Runmethod,622ServiceControllerclass,619ServiceDependsUponobject,624ServiceDependsUponproperty,ServiceInstallerclass,624ServiceInstallerclass,623–624ServiceNameobject,624ServiceNameproperty,620,624ServicePackproperty,607ServiceProcessInstallerclass,623–624SessionChangeDescriptionclass,619Setaccessor,XmlSerializerclass,290Setmethod,160Setproperty,290SetRegistrytool(setreg.
exe),37–38SetAccessControlmethod,230SetAtmethod,SecureStringclass,533SetAttributeValueattribute,271SetAttributeValuemethod,273SetCurrentDirectorymethod,Directoryclass,217SetDatamethod,AppDomainclass,113–114SetDefaultPrintermethod,435SetDelimitersmethod,TextFieldParserclass,205SetElementValueattribute,271SetElementValuemethod,273SetErrormethod,377SetFieldWidthsmethod,TextFieldParserclass,205SetLastErrorfield,DllImportAttribute,549–550SetMaxThreadsmethod,ThreadPoolclass,132SetPrincipalPolicymethod,AppDomainclass,515setreg.
exe(SetRegistrytool),37–38SetStylemethod,407SetThreadPrincipalmethod,AppDomainclass,515settingfileordirectoryattributes,189Settingsclass,Myobject.
SeeMy.
SettingsclassSetValueattribute,271SetValuemethod,RegistryKeyclass,612–616SetWindowPositionmethod,IVideoWindowinterface,415SetWindowSizemethod,Consoleclass,24SHAalgorithms,523SHA1CryptoServiceProviderclass,523–524SHA1Managedalgorithm,527SHA1Managedclass,523–524SHA256Managedclass,524shallowcopy,79,568shapescreatingmovableshape,399–403hittestingwith,394–397performinghittestingwithshapes,394–397sharedassemblies,managingGAC,38–39SharedFromFilemethod,409SharedInstalledPrintersstringcollection,418SharedMainmethod,620Sharedmethods,412,587,610SharedNewspaper.
CirculationSorterproperty,572Sharedproperty,340,596SharedServiceBase.
Runmethod,618Shortvalue,611shortcuts,626–629Showmethod,347,428ShowDialogmethod,OpenFileDialogclass,221SID(securityidentifier),512SignToolFileSelectionscreen,33HashAlgorithmscreen,36PrivateKeyscreen,35promptforpasswordtoprivatekey,35SignatureCertificatescreen,34signingassemblieswithAuthenticode,33–36SigningOptionsscreen,34SignalAndWaitmethod,WaitHandleclass,160signalledstate,159SignatureCertificatescreen,SignTool,34SigningOptionsscreen,SignTool,34simpledatatypes,XMLschema,286simpledocuments,420–422,426–427SimpleObjectAccessProtocol(SOAP),89simpletypes,286Singlemethod,253,254singlequotes('),19single-callactivationcontrollinglifetimeofremoteobjects,490description,482makingobjectsremotable,484SingleCallvalue,WellKnownObjectModeenumeration,486Singletonpattern,561,595–597Singletonvalue,WellKnownObjectModeenumeration,486668INDEXSingletonExampleclass,596Siteclass,507SizeChangedevent,PictureBoxcontrol,415SizeOfmethod,Marshalclass,545–546skswitch,CertificateCreationtool,38Skipclause,254Skipmethod,256Sleepmethod,Threadclass,134SMTP,455–458SmtpClientclass,455–457sn.
exe.
SeeStrongNametoolSOAP(SimpleObjectAccessProtocol),89SoapFormatterclass,89–92SocketPermissionclass,500–501SocketPermissionAttributeclass,500softwaredevelopmentkit(SDK),605SoftwarePublisherCertificate.
SeeSPCSoftwarePublisherCertificateTesttool(cert2spc.
exe),37SomeProtectedMethodmethod,508Sortmethod,77–78,364–365,571–572sortingcollections,571contentsofarrayorArrayListcollection,77–78data,239soundfiles,413–415SoundPlayerclass,411–412sounds,system,410–411SPC(SoftwarePublisherCertificate)creatingSPCtotestAuthenticodesigningofassembly,37–38generatingSPCfromX.
509certificate,37obtaininganSPC,32signingassemblieswithAuthenticode,32SpecialFolderenumeration,Environmentclass,607SpecialFoldersproperty,WshShellclass,627Speedproperty,NetworkInterfaceclass,439sprites,399–403/sprocsparameter,338SQLcommandsexecuting,311–315executingdatabaseoperationsasynchronously,327executingSQLcommandorstoredprocedure,311usingparametersin,316–319usingparametersinSQLcommandorstoredprocedure,316SQLqueries,320–323SQLServerdiscoveringallinstancesofonnetwork,340–341discoveringallinstancesofSQLServeronnetwork,340executingdatabaseoperationsasynchronously,327performingasynchronousdatabaseoperationsagainst,327–330SQLServerCEdataprovider,300,306SQLServerdataprovider,300,304SqlCenamespace,System.
Data,300SqlCeprefix,300SqlCeCommandclass,312SqlCeConnectionclass,301SqlCeDataReaderclass,320SqlCeParameterclass,316SqlClientnamespace,System.
Data,300SqlClientFactoryclass,332SqlCommandclass,313–327SqlConnectionclass,301–302,317SqlConnectionStringBuilderclass,307SqlDataReaderclass,320,321SqlDataSourceEnumeratorclass,337–340SqlDataSourceEnumerator.
Instanceclass,340SqlDbTypeproperty,317SqlParameterclass,316,317SqlParameter.
SqlDbTypeproperty,317SqlParamterclass,317ssswitch,CertificateCreationtool,38Stackcollection,79–85StandardNameproperty,74Startmenu,626–629StartmethodHttpListenerclass,449Processclass,174–175ServiceControllerclass,619Threadclass,152,171StartProcessmethod,AsyncProcessorclass,208StartTypeobject,624StartTypeproperty,ServiceInstallerclass,624–626stateremoting,437single-callactivation,482webservices,437Statusproperty,PingReplyclass,460stockInfoproperty,251669INDEXStopmethodIMediaControlinterface,413My.
Computer.
Audioclass,412WebBrowsercontrol,383storedproceduresexecuting,311–315executingSQLcommandorstoredprocedure,311usingparametersin,316–319usingparametersinSQLcommandorstoredprocedure,316StoredProcedurevalue,312StoredProcedureExamplemethod,317storingdatabaseconnectionstringsecurely,309storingfiles,223–225storingserializableobjectwithstatetofile,89–92Streamclasscalculatinghashcodeoffiles,526classesderivingfromMarshalByRefObject,106downloadingdataoverHTTPorFTP,444ensuringdataintegrityusingkeyedhashcode,531System.
IO,87StreamingContextclass,562–564StreamReaderclassdownloadingfileandprocessingusingstream,446–447NET.
NETFrameworkencoding,200Readmethod,200–201readingandwritingtextfiles,200ReadLinemethod,200–201ReadToEndmethod,201streamsdownloadingfileandprocessingusing,446–448readingandwritingdatafrom,183StreamWriterclass,200,477Stringargument,613Stringarray,616stringbasedresourcefile,11–13Stringclasscreatingdatabaseconnectionstringprogrammatically,306Formatmethod,586immutabilityofobjects,52implementingcloneabletype,568implementingformattabletype,586protectingsensitivestringsinmemory,533Stringobject,51–53stringrepresentations,561Stringvalue,610StringBuilderclassCapacityproperty,52instantiatingobjectsusingreflection,121Lengthproperty,52manipulatingcontentsofStringobject,52MaxCapacityproperty,52mutablestrings,542namespace,121ReverseStringmethod,52ToStringmethod,52verifyinghashcodes,529StringBuilderclass,System.
Text,52stringInfodatamember,591stringscommonencodings,201creatingDateTimeobjectsfromstrings,68determiningifpathisdirectoryorfile,215–216encodingusingalternatecharacterencoding,54–56fixed-lengthstrings,546manipulatingcontentsofStringobject,51–53manipulatingstringsrepresentingfilepath/name,214–215mutablestrings,542protectingsensitivestringsinmemory,533–536workingwithrelativepaths,216–218StrongNametool(sn.
exe)creatingstrong-namedkeypairs,26–27delaysigningassemblies,31–32verifyingstrong-namedassemblynotmodified,30Vrswitch,31–32stronglytypedcollections,84–86StrongNameclass,507strong-namedassembliesallowingpartiallytrustedcodetouse,496–498delaysigningassemblies,31verifyingstrong-namedassemblynotmodified,30StrongNameIdentityPermissionAttributeclass,507strong-namingassemblies,98–99creatingstrong-namedkeypairs,26–27givingstrongnametoassemblies,27–29670INDEXStructLayoutAttributeclass,545StructuredQueryLanguage.
SeeSQLstructures,callingunmanagedfunctionthatuses,545–547stylesheetelement,295subexpressionofregularexpressions,63Subjectproperty,MailMessageclass,456SubjectEncodingproperty,MailMessageclass,456SubmitChangesmethod,336subtraction(-)operator,71successvariable,289sumcalculations,243,244Supportsmethod,NetworkInterfaceclass,439SupportsDaylightSavingTimeproperty,74SupportsMulticastproperty,NetworkInterfaceclass,439SuppressFinalizemethod,GCclass,583SuspendLayoutmethod,Controlclass,345svswitch,CertificateCreationtool,38synchronizationaccesstoshareddata,167–169accesstosharedresource,155multiplethreadsusingevent,159–162multiplethreadsusingmonitor,154–159multiplethreadsusingmutex,163multiplethreadsusingsemaphore,165–167startapplicationrunninginnewprocess,167–169terminatingexecutionofthread,171–173terminatingprocess,177–179threadsonlockwaitqueue,155WaitHandlemethodsforsynchronizingthreadexecution,160waiting,328communicatingusingnamedpipes,477–481communicatingusingTCP/IP,462–466determiningwhetherasynchronousmethodhasfinished,134executingmethodasynchronously,133–140managed-codesynchronizationmechanisms,155Synchronizedmethod,collections,173Synclockstatement,155SyncRootproperty,collections,173SyncRootproperty,ICollectioninterface,174SyndicationFeedclass,493SystemnamespaceAppDomainclass,100,515AppDomainSetupclass,101systemsounds,410–411systemtrayicon,376System.
ApplicationExceptionclass,589System.
ArgumentNullExceptionexception,590System.
ArgumentOutOfRangeExceptionexception,590System.
AsyncCallbackdelegateinstance,327System.
Collectionsnamespace,173,568ArrayListclass,90,114,572deepcopy,568IComparerinterface,77,365,571IEnumerableinterface,575IEnumeratorinterface,508shallowcopy,568System.
Collections.
Genericnamespace,173genericcollections,85IComparerinterface,571IEnumeratorinterface,576synchronizationmechanisms,174usingstronglytypedcollection,84System.
Collections.
Generic.
IComparer(OfT)interface,571System.
Collections.
Generic.
IEnumerable(OfT)interface,575System.
Collections.
Generic.
List(OfT)collection,572System.
Collections.
IComparerinterface,571System.
Collections.
IEnumerableinterface,575System.
Collections.
Specializednamespace,173System.
ComponentModelnamespace,444System.
ComponentModel.
BackgroundWorkerclass,141System.
ComponentModel.
RunInstallerAttribute(True)attribute,623System.
Configurationnamespace,309System.
Configuration.
Configurationobject,309System.
Configuration.
ConfigurationManagerclass,309System.
Configuration.
ConfigurationManager.
OpenExeConfigurationmethod,309System.
Configuration.
ConnectionStringSettingsobject,309System.
Configuration.
dllassembly,309System.
Configuration.
Installnamespace,623,624System.
Configuration.
Install.
dllassembly,624System.
Configuration.
Install.
Installerclass,623System.
Configuration.
Install.
InstallerCollectionobject,624671INDEXSystem.
Consoleclass,586System.
Datanamespace,330commandclasses,311–312CommandTypeenumeration,312connectionstringbuilderclasses,306dataprovidersanddatasources,299datareaderclasses,320databaseconnectionclasses,301DataRowclass,340DataSetclass,104,331DataTableclass,332,340,482DbParameterCollection,312DbTransaction,312DbTypeenumeration,317IDbCommandinterface,311IDbConnectioninterface,301parameterclasses,316ParameterDirectionenumeration,317writingdatabaseindependentcode,330System.
Data.
Commonnamespace,301,306,331System.
Data.
Common.
DbConnectionString-Builderclass,306System.
Data.
Common.
DbExceptionclass,332System.
Data.
Common.
DbProviderFactoryclass,317,331System.
Data.
DataRowobject,340System.
Data.
DbDataReaderclass,320System.
Data.
DbTypeenumeration,317System.
Data.
IDataParameterinterface,316System.
Data.
IDataReaderinterface,320System.
Data.
IDataRecordinterface,320System.
Data.
IDbCommandinterface,311System.
Data.
IDbConnectioninterface,301System.
Data.
Linq.
DataContextclass,335System.
Data.
Linq.
Mappingnamespace,335–336System.
Data.
Odbcnamespacecommandclass,312datareaderclass,320databaseconnectionclass,301factoryclass,331parameterclass,316System.
Data.
OleDbnamespace,299commandclass,312datareaderclass,320databaseconnectionclass,301factoryclass,332OleDbConnectionStringBuilderclass,307parameterclass,316System.
Data.
OracleClientnamespace,299seeOracleClientnamespace,System.
Data,299commandclass,312datareaderclass,320databaseconnectionclass,301factoryclass,332OracleConnectionStringBuilderclass,307System.
Data.
SqlClientnamespace,300commandclass,312datareaderclass,320databaseconnectionclass,301factoryclass,332parameterclass,316SqlCommandclass,327SqlConnectionStringBuilderclass,307SqlDataSourceEnumeratorclass,340System.
Data.
SqlClient.
SqlCommandclass,323–327System.
Data.
SqlServerCenamespace,300commandclass,312datareaderclass,320databaseconnectionclass,301parameterclass,316System.
Data.
Sql.
SqlDataSourceEnumeratorclass,340System.
DiagnosticsnamespaceConditionalAttributeclass,19EventLogclass,610EventLogEntryTypeenumeration,610FileVersionInfoclass,196Processclass,174,543ProcessInfoclass,174ProcessStartInfoclass,534ProcessWindowStyleenumeration,176System.
Diagnostics.
EventLogclass,610System.
Diagnostics.
EventLogEntryTypeenumeration,610SystemDirectoryproperty,Environmentclass,606System.
Drawingnamespace,391Graphicsclass,420Imageclass,409Rectanglestruct,394Regionclass,395System.
Drawing.
dllassembly,420System.
Drawing.
Drawing2Dnamespace,394–398System.
Drawing.
Drawing2D.
GraphicsPathobject,398672INDEXSystem.
Drawing.
Graphicsobject,420System.
Drawing.
Imageclass,409System.
Drawing.
Printingnamespace,391,418,420System.
Drawing.
Printing.
PrintDocumentinstance,420System.
Drawing.
Printing.
PrinterSettingsclass,418System.
Drawing.
Regionobject,397System.
Drawing.
Textnamespace,392System.
Drawing.
Text.
InstalledFontCollectionclass,392System.
Environmentclass,605System.
EnvironmentVariableTargetargument,609System.
EventArgsclass,593–598System.
Exceptionclass,589System.
FormatExceptionexception,590System.
GCclass,582System.
GC.
KeepAlive(mutex)statement,181System.
Globalizationnamespace,69,586System.
Globalization.
CultureInfoclass,587System.
IAsyncResultobject,327System.
ICloneableinterface,567System.
IComparableinterface,571System.
IComparable(OfT)interface,571System.
IDisposableinterface,301,582System.
IFormattableinterface,586System.
IOnamespaceBinaryReaderclass,57,203,446BinaryWriterclass,57,203classesderivingfromMarshalByRefObject,106Directoryclass,215–217DirectoryInfoclass,184–189,190,211DriveInfoclass,184Fileclass,215FileAttributesenumeration,185FileInfoclass,184–189,190,347FileLoadExceptionclass,30,500System.
IO.
IsolatedStoragenamespace,223System.
IO.
MemoryStreamobject,568System.
IO.
Portsnamespace,228System.
Linqnamespace,234System.
Linq.
Enumerableclass,235,257–259System.
Linq.
Enumerablenamespace,253System.
Management.
dllassembly,431System.
Medianamespace,391–412System.
Media.
SoundPlayerclass,412System.
NETnamespaceDnsclass,458HttpListenerclass,448HttpListenerContextclass,449HttpListenerPrefixCollectioncollection,449ICredentialsByHostinterface,455WebRequestclass,446WebResponseclass,446System.
Net.
Mailnamespace,455,456System.
Net.
NetworkInformationnamespaceIPGlobalPropertiesclass,439IPStatusenumeration,460NetworkChangeclass,441NetworkInterfaceclass,438NetworkInterfaceComponentenumeration,439NetworkInterfaceTypeenumeration,439OperationalStatusenumeration,439PhysicalAddressclass,439Pingclass,460PingCompletedEventHandlerdelegate,460PingOptionsclass,460PingReplyclass,460System.
Net.
SocketsnamespaceNetworkStreamclass,462–466TcpClientclass,462TcpListenerclass,462–466UdpClientclass,474System.
NonSerializedAttributeattribute,562System.
ObjectDisposedExceptionexception,583System.
OperatingSystemobject,607SystemOperatorvalue,WindowsBuiltInRoleenumeration,512System.
Runtime.
CompilerServicesnamespace,46System.
Runtime.
InteropServicesnamespacecreatingRCW,552DllImportAttributeclass,540GuidAttribute,558Marshalclass,414,534,545StructLayoutAttributeclass,545System.
Runtime.
InteropServices.
Marshalclass,414System.
Runtime.
RemotingnamespaceObjectHandleclass,104RemotingConfigurationclass,481WellKnownObjectModeenumeration,486System.
Runtime.
Remoting.
Lifetimenamespace,490673INDEXSystem.
Runtime.
Serializationnamespaceattributes,562–563IFormatterinterface,89implementingserializabletypes,562ISerializableinterface,562,590–594OnDeserializedAttribute,563OptionalFieldAttributeclass,562SerializationException,113SerializationInfoclass,563StreamingContextclass,562–563System.
Runtime.
Serialization.
Formatters.
Binarynamespace,89,568System.
Runtime.
Serialization.
Formatters.
Binary.
BinaryFormatterclass,568System.
Runtime.
Serialization.
Formatters.
Soapnamespace,89System.
Runtime.
Serialization.
ISerializableinterface,562,590–594System.
Runtime.
Serialization.
OptionalField-Attributeattribute,562System.
Runtime.
Serialization.
SerializationInfoargumenttype,563System.
Runtime.
Serialization.
StreamingContextargumenttype,563System.
Securitynamespace,537AllowPartiallyTrustedCallersAttributeclass,496SecureStringclass,175,533SecurityExceptionclass,500–505,514SecurityManagerclass,505System.
Security.
Cryptographynamespacecalculatinghashcodeofpassword,523DataProtectionScopeenumeration,537HashAlgorithmclass,212,522–526,531keyedhashingalgorithmimplementations,531KeyedHashAlgorithmclass,530–531MemoryProtectionScopeenumeration,537ProtectedDataclass,536ProtectedMemoryclass,536RandomNumberGeneratorclass,521RNGCryptoServiceProviderclass,521System.
Security.
Cryptography.
X509Certificatesnamespace,453,455System.
Security.
PermissionsnamespaceFileIOPermissionclass,503identitypermissiontypes,507PrincipalPermissionclass,514PrincipalPermissionAttributeclass,514SecurityActionenumeration,502System.
Security.
PolicynamespaceEvidenceclass,101,508evidenceclassesgeneratingidentitypermissions,507PolicyExceptionclass,500,515System.
Security.
PrincipalnamespaceIIdentityinterface,511IPrincipalclass,449IPrincipalinterface,511–518PrincipalPolicyenumeration,515SecurityIdentifierclass,512WindowsBuiltInRoleenumeration,512WindowsIdentityclass,511,517–518WindowsPrincipalclass,511System.
SerializableAttributeattribute,562,590–594System.
ServiceModel.
Syndicationnamespace,493System.
ServiceProcessassembly,618System.
ServiceProcessnamespaceServiceProcessInstallerclass,624SessionChangeDescriptionclass,619System.
ServiceProcess.
dllassembly,624System.
ServiceProcess.
ServiceBaseclass,618System.
ServiceProcess.
ServiceInstallerclass,624System.
ServiceProcess.
ServiceProcessInstallerclass,624SystemSoundclass,410–411SystemSoundsclass,411System.
Stringdatamembers,568System.
TextnamespaceEncodingclass,54,203,456,524NET.
NETFrameworkencoding,200StringBuilderclass,52,121,529System.
Text.
RegularExpressionsnamespace,64–66System.
ThreadingnamespaceAutoResetEventclass,159EventResetModeenumeration,160EventWaitHandleclass,159Interlockedclass,167ManualResetEventclass,159Monitorclass,155Mutexclass,163,179ParameterizedThreadStartdelegate,152Semaphoreclass,165Threadclass,514ThreadAbortExceptionclass,171674INDEXThreadStartclass,152ThreadStateenumeration,152ThreadStateExceptionclass,152Timeoutclass,146Timerclass,145–147TimerCallbackdelegate,145–147WaitCallbackdelegate,130System.
Threading.
WaitHandleclass,328System.
Timersnamespace,145,620System.
Windowsclass,385System.
Windows.
FormsnamespaceApplicationclass,5AxHostclass,556classes,343CommonDialogclass,221Controlclass,399,556controlclasses,343FolderBrowserDialogclass,221Formclass,5,488HelpProvidercomponent,381OpenFileDialogclass,221Panelcontrol,403PictureBoxcontrol,403PrintDialogclass,420PrintPreviewControlclass,428PrintPreviewDialogclass,428SaveFileDialogclass,221Timerclass,145System.
Windows.
Forms.
Controlclass,399System.
Windows.
Forms.
Designnamespace,556System.
Windows.
Forms.
Panelcontrol,403System.
Windows.
Forms.
PictureBoxcontrol,403System.
Windows.
Forms.
PrintDialogclass,420System.
Xmlnamespace,263,285,323,324,568System.
Xml.
Linqclass,280System.
Xml.
Linqqueryclause,274System.
Xml.
Linq.
XElementobject,264System.
Xml.
Serializationnamespace,290System.
Xml.
Serialization.
XmlSerializerclass,290System.
Xml.
XmlReaderobject,323System.
Xml.
XPath.
Extensionsclass,278System.
Xml.
Xslnamespace,295System.
Xml.
Xsl.
XslCompiledTransformclass.
,295T/t:,293TableDirectvalue,312TableLayoutPanelcontainer,368–369Tagproperty,347–348Takeclause,254Takemethod,256Targetelement,15target/target:exeswitch,3,7target/target:libraryswitch,10target/target:modulecompilerswitch,8targettarget:winexeswitch,7Tasksproperty,577TCPasynchronouscommunicationsusing,466–474description,462templateforTCPclient,464–466templateforTCPserver,463–464TcpClientclass,462,464TCP/IPcommunicatingusing,462–466resolvinghostnametoIPaddressusingDNS,458TcpListenerclassAcceptTcpClientmethod,463,466asynchronouscommunicationsusingTCP,466BeginAcceptTcpClientmethod,466–467communicatingusingTCP/IP,462EndAcceptTcpClientmethod,466Teamclass,568–581TeamChangeevent,582Team.
GetEnumeratormethod,577TeamMemberclass,577Temperatureproperty,601TemperatureAverageObserverclass,598TemperatureAverageObservertype,599TemperatureChangeevent,601TemperatureChangemethod,599TemperatureChangedEventArgsclass,598TemperatureChangedEventArgsobject,599–601TemperatureChangedEventHandlerdelegate,598–599TemperatureChangeObserverclass,598TemperatureChangeObservertype,599templates,XSLTstylesheet,295675INDEXtemporaryfiles,218–219testingcreatingtestX.
509certificate,37performinghittestingwithshapes,394–397textprintingsimpledocument,420wrapped,426–427textboxcontrol,359textfilesdelimited,parsingcontentsof,204readingandwriting,200Textproperty,372,423TextBoxclass,349TextBoxcontrol,359,379TextChangedevent,ComboBoxcontrol,362TextDocumentclass,423TextFieldParserclass,192,205,282TextFieldTypeproperty,TextFieldParserclass,205TextReaderclass,106TextWriterclass,106TheRegulator,62ThenBymethod,239Thermostatclass,598,599ThreadclassAbortmethod,116,171creatingandcontrolingthreads,152CurrentPrincipalproperty,514–518CurrentUICultureproperty,371IsAliveproperty,169–170Joinmethod,161–170ResetAbortmethod,171restrictingwhichuserscanexecutecode,514Startmethod,152,171threadpoolconsiderationsbeforeusing,132executingmethodusingthreadfromthreadpool,130–133threadsynchronization,155ThreadAbortExceptionclass,171ThreadPoolclass,130–133,150threadsacquiringlocks,155asynchronouscommunicationsusingTCP,466–474backgroundthreads,133blocking,129,155,328callingOnXyzvirtualmethods,444creatingthread-safecollectioninstance,173–174ensuringonlyoneinstanceofapplicationexecuting,179–181executingmethodasynchronously,133–140executingmethodinseparatethreadatspecifictime,147–149executingmethodinseparatethreadperiodically,145–147executingmethodusingnewthread,152–154executingmethodusingthreadfromthreadpool,130–133executingmethodwhenWaitHandlesignalled,150–151executingmultiplethreads,129foregroundthreads,133knowingwhenthreadfinished,169–171manipulatingeventstatebetweensignaledandunsignaled,159multiplethreadsreadingcollectionclasses,173operatingsystemandmanagedthreads,129polling,328processesandthreads,129releasinglocks,155safety,testingforwithIsSynchronizedproperty,173synchronization,129ThreadStartclass,152ThreadStartdelegate,152ThreadStateenumeration,152ThreadStateExceptionclass,152thumbnails,409–410TickCountproperty,Environmentclass,606ticks,71TimedOutvalue,IPStatusenumeration,460Timeoutclass,146–148TimeoutpropertySmtpClientclass,455WebRequestclass,447TimerclassChangemethod,146creatingWindowsservice,620Disposemethod,146executingmethodinseparatethreadatspecifictime,147–148executingmethodinseparatethreadperiodically,145–146TimerCallbackdelegate,145–147times.
SeedatesandtimesTimeSpanandDateTimestructures,71TimeSpanstructure,70,71,146,148,490676INDEXTimeZoneclass,73TimeZoneInfoclass,75Titleproperty,Consoleclass,23Tlbexp.
exe,558Tlbimp.
exedescription,556playingsoundfile,413usingCOMcomponentin.
NETclient,551–552Toproperty,MailMessageclass,456ToArraymethod,57,79ToBase64CharArraymethod,Convertclass,59ToBase64Stringmethod,Convertclass,59ToBooleanmethod,BitConverterclass,57ToInt32method,BitConverterclass,57ToListextensionmethod,273ToListmethod,255TopIndexproperty,ListBoxclass,358–359TopMostproperty,543ToSerializedStringmethod,74ToStringmethodBitConverterclass,58,528,529IFormattable,586Objectclass,509PhysicalAddressclass,439SecureStringclass,534StringBuilderclass,52TotalFreeSpaceproperty,220Transactionproperty,312Transformmethod,XslCompiledTransformclass,295TransparencyKeyproperty,399TransparentKeyproperty,399TreeNodeclass,347TreeViewcontrolBeforeExpandevent,197–198displayingdirectorytreeinTreeViewcontrol,197–200Fillmethod,198triggers,150Try.
.
.
Catch.
.
.
Finallyblocks,589Trystatement,589TryCastkeyword,119TryParsemethod,69TryParseExactmethod,68,69typeattribute,285Typeclasscopyingcontentsofcollectiontoarray,79EmptyTypesfield,121GetConstructormethod,121GetNestedTypemethod,116,117GetNestedTypesmethod,116,117typeinstances,567TypeLibraryExporter,558TypeLibraryImporter,413TypeOfoperator,119types,561cloneable,implementing,567–571comparable,implementing,571–575creatinggenerictype,86–89decoratingwithcustomattribute,126enumerable,implementingusingcustomiterators,575–582GetTypeoperator,116–117implementingformattabletype,586inheritance,119instantiatingtypeinremoteapplicationdomain,109–113retrievingobjecttype,116serializable,implementing,561–567testingobjecttype,119thatcanbeformatted,implementing,586–589usinganonymoustypes,44–45usingimplicitlytypedvariables,40–41U/uswitch,626uswitch,626UAC(UserAccountControl),387UDP(UserDatagramProtocol),474–476UdpClientclass,474unarynegation(-)operatorelement,279–286,292node,266section,309tag,286TimeSpanandDateTimestructures,71unaryplus(+)operator,71UnauthenticatedPrincipalvalue,PrincipalPolicyenumeration,515Undomethod,WindowsSecurityContextclass,518Unicodecharacters,54Unicodeproperty,UnicodeEncodingclass,54UnicodeEncodingclass,54Unionmethod,256–257Unloadmethod,AppDomainclass,115–116677INDEXunmanagedcodedescription,539interoperability,539–559callingfunctionsdefinedinunmanagedDLL,540–542callingmethodinCOMcomponentwithoutrequiredparameters,554–555callingunmanagedfunctionthatusescallback,548–549unmanagedresources,582–585UnprotectmethodProtectedDataclass,537ProtectedMemoryclass,537SectionInformationclass,309unreferencedobjects,582Unregistermethod,RegisteredWaitHandleclass,150unsignalledstate,159UPDATEcommand,313,317UploadDatamethod,WebClientclass,446UploadDataAsyncmethod,WebClientclass,446UploadFilemethod,My.
Computer.
Networkclass,446UploadFilemethod,WebClientclass,446UploadFileAsyncmethod,WebClientclass,446uploadingdataoverHTTPorFTP,446UploadStringmethod,446UploadStringAsyncmethod,WebClientclass,446Urlclass,507Urlproperty,WebBrowsercontrol,383UseDefaultCredentialsproperty,SmtpClientclass,455UserAccountControl(UAC),387Userclass,Myobject,183UserDatagramProtocol(UDP),474–476userinputvalidatinginputusingregularexpressions,62–65validatinguserinputandreportingerrors,377–379userinput,readingfromWindowsconsole,92–95userinterface,creatingasynchonousmethodtoupdate,140–145/userparameter,338Userproperty,HttpListenerContextclass,449Uservalue,WindowsBuiltInRoleenumeration,512User32.
dll,540UserDomainNameproperty,Environmentclass,606UserInteractiveproperty,Environmentclass,606UserNamepropertyEnvironmentclass,606ProcessStartInfoclass,176Usernameproperty,ServiceProcessInstallerclass,624usersdeterminingifuserismemberofWindowsgroup,511–513impersonatingWindowsusers,517–520restrictingwhichuserscanexecutecode,514–517Usersfield,RegistryKeyclass,615UserStateproperty,142Usingstatement,301,321constructingMonitorclassin,181simplifyingcorrectuseofdisposableobjects,582startapplicationrunninginnewprocess,176Utcproperty,74UTF-16encoding,54–56,201UTF-32encoding,201UTF-7encoding,201UTF7Encodingclass,54UTF-8encoding,201VValidateInputmethod,Regexclass,64–65ValidateXmlmethod,287validationinputusingregularexpressions,62–65solvinguser-inputvalidationproblems,360validatinginputusingregularexpressions,62–65validatingXMLdocumentagainstschema,285–290XMLdocumentsagainstschemas,285–289ValidationEventHandlerevent,285–287ValidOnproperty,125valueofcommand,295Valueproperty,271,317valuetypesconvertingto/frombytearrays,56–58passingobjectsbyvalue,107value-ofcommand,295VB.
NETcompiler,2Vbctask,15vbc.
exe,2678INDEXvcvarsall.
bat,2verification,37VerifyB64Hashmethod,529VerifyByteHashmethod,529VerifyHexHashmethod,529verifyingstrong-namedassemblynotmodified,30Versionclass,606Versioncolumn,340versionpolicy,99Versionproperty,606–607versionscontrollingversioningforremoteobjects,491–492retrievinginformationabout,196–197,212VersionStringproperty,OperatingSystemclass,607video,playingwithDirectShow,415–417/viewsparameter,338VisualStudioconfiguringApplicationSettingsinVisualStudio,355–356developingWindowsFormsapplications,344generatingRCWs,552Vrswitch,StrongNametool,31Vuswitch,StrongNametool,32Wwelement,regularexpressions,63Welement,regularexpressions,63Waitmethod,Monitorclass,156waitqueue,155WaitAllmethod,WaitHandleclass,160WaitAllExamplemethod,135WaitAnymethod,WaitHandleclass,160WaitCallbackdelegate,130WaitForConnectionmethod,477WaitForExitmethod,Processclass,176,178WaitHandleclassexecutingmethodwhenWaitHandlesignalled,150–151executingmethodsasynchronously,134methodsforsynchronizingthreadexecution,160namespace,150synchronizingmultiplethreadsusingmutex,163System.
Threadingnamespace,328WaitOrTimerCallbackdelegate,150WaitingExamplemethod,135WaitOnemethod,WaitHandleclass,160WaitOrTimerCallbackdelegate,150WaitSleepJoinstate,155WaitToCompletevalue,PlayModeparameter,412WAVfiles,412–413webpages,displayinginWindowsapplication,382webservices,437WebBrowsercontrol,297,382WebClientclassCancelAsyncmethod,444Certificatesproperty,453Componentclassand,444Credentialsproperty,453downloadingdataoverHTTPorFTP,443–444downloadingfileandprocessingusingstream,447methods,444OpenReadmethod,447OpenWritemethod,446OpenWriteAsyncmethod,446UploadDatamethod,446UploadDataAsyncmethod,446UploadFilemethod,446UploadFileAsyncmethod,446WebExceptionclass,447WebPermissionclass,500WebPermissionAttributeclass,500WebRequestclassCertificatesproperty,452classesderivingfromMarshalByRefObject,106Createmethod,447Credentialsproperty,452–453downloadingfileandprocessingusingstream,446–447GetResponsemethod,447gettingHTMLpagefromsiterequiringauthentication,452Timeoutproperty,447WebResponseclassclassesderivingfromMarshalByRefObject,106downloadingfileandprocessingusingstream,446–447GetResponseStreammethod,447gettingHTMLpagefromsiterequiringauthentication,452WebServicesclass,Myobject,183679INDEXWindowsPrincipalclass,511–512WindowsPrincipalvalue,PrincipalPolicyenumeration,515WindowsSecurityContextclass,518WindowStyleproperty,ProcessStartInfoclass,176WindowWidthproperty,Consoleclass,24Withkeyword,41–43WM_CLOSEmessage,178WMI(WindowsManagementInstrumentation),managingprintjobs,431–435WorkerRerportsProgressproperty,141WorkerSupportsCancellationproperty,141WorkingDirectoryproperty,ProcessStartInfoclass,176WPF(WindowsPresentationFoundation),385–387,391,392,559–560WrapContentsproperty,FlowLayoutPanelcontainer,368wrappedtext,printing,426–427wrapperassembly,creatingwrapperusingTlbimp.
exe,552WritemethodBinaryWriterclass,203Consoleclass,8StreamWriterclass,200WriteEntrymethod,EventLogclass,610WriteLinemethod,ConsoleclasscreatingWindowsFormsapplication,8implementingformattabletype,586WriteLinemethod,StreamWriterclass,200WritePrivateProfileStringmethod,540writingreadingandwritingbinaryfiles,203–204readingandwritingtextfiles,200writingandreadingINIfiles,540WshShellclassCreateShortcutmethod,627SpecialFoldersproperty,627WshShellobject,627WshShell.
SpecialFoldersproperty,627XX.
509certificate,37X509Certificate2UIclass,453X509CertificatesCollectionclass,455X509Storeclass,453XAML(ExtensibleApplicationMarkupLanguage),391XAttributeclass,264–265XAttributeobjects,269XDocumentclass,264–266,324XDocumentinstance,285XElementclass,264,268–274,324XElementinstance,285XElementobject,265–269,276XElement.
Addmethod,269XElement.
SetElementValuemethod,273XElement.
SetValuemethod,271XMLdocumentschangingvalueofelementsorattributes,271–272creating,264–267insertingelementsinto,269–270insertingnodesinXMLdocument,269–272joiningandqueryingmultiple,280–281obtainingfromSQLServerqueries,323–326queryingforelementsinspecificXMLnamespaces,276–278queryingusingLINQ,274–275queryingusingXPath,278–280removingorreplacingelementsorattributes,272–274retrievingresultsofSQLqueryasXML,323validatingagainstschemas,285–289XMLfilesconvertingtodelimitedfiles,281–284loadingintomemory,268XMLliterals,269,281XMLnamespaces,276–278XMLprocessingcreatingXMLschemafor.
NETclass,293–294generating.
NETclassfromXMLschema,294–295insertingnodesinXMLdocument,269–272performingXSLtransform,295searchingXMLdocumentfornodesusingXPath,278serializingobjectsto/fromXML,290validatingXMLdocumentagainstschema,285–290XMLschemacreatingXMLschemafor.
NETclass,293–294datatypes,286generating.
NETclassfromXMLschema,294–295validatingXMLdocumentagainstschema,285–290XMLSchemaDefinitionTool(xsd.
exe),285–286,293,294XMLserialization,290–293680INDEXXmlArrayattribute,290XmlAttributeattribute,290XmlDocumentclass,294retrievingresultsofSQLqueryasXML,324SelectNodesmethod,278SelectSingleNodemethod,278XmlElementattribute,290XmlEnumattribute,290XmlExceptionobject,287XmlIgnoreattribute,290XmlNodeclass,568xmlnskey,276XmlReaderclassCreatemethod,285–287enforcingschemarules,286raisingValidationEventHandlerevent,287Readmethod,285retrievingresultsofSQLqueryasXML,323–324XmlReader.
Createmethod,286XmlReader.
Createnamespace,285XmlReaderSettingsclass,285XmlReaderSettingsobject,285–287XmlRootattribute,290XmlSerializerclass,290creatingXMLschemafor.
NETclass,293generating.
NETclassfromXMLschema,294XmlSerializerobject,292xmlTreeelement,265XmlWriterclass,294XNameclass,264–277XNameparameter,271XNamespaceclass,277XNamespaceinstance,277XNamespaceobject,276XNodeclass,264XNode.
CreateReadermethod,285Xorbitwiseoperator,189XORoperator,20XPath,278–280XPathSelectElementextension,278XPathSelectElementmethod,278XPathSelectElementsmethod,278XSD(XMLSchemaDefinition),285–286xsd.
exe(XMLSchemaDefinitionTool),285–286,293,294XSLTransformations(XSLT)stylesheets,263,295XslCompiledTransformclass,295–297XslCompiledTransform.
Loadmethod,295XSLT(XSLTransformations)stylesheets,263,295XslTransformclass,297Zzelement,regularexpressions,63Zoneclass,73–75
如果我们熟悉RAKsmart商家促销活动的应该是清楚的,每个月的活动看似基本上一致。但是有一些新品或者每个月还是有一些各自的特点的。比如七月份爆款I3-2120仅30美金、V4新品上市,活动期间5折、洛杉矶+硅谷+香港+日本站群恢复销售、G口不限流量服务器比六月份折扣力度更低。RAKsmart 商家这个月依旧还是以独立服务器和站群服务器为主。当然也包括有部分的低至1.99美元的VPS主机。第一、I...
Vultr 商家有新增韩国首尔机房,这个是继日本、新加坡之后的第三个亚洲机房。不过可以大概率知道肯定不是直连中国机房的,因为早期的日本机房有过直连后来取消的。今天准备体验看看VULTR VPS主机商的韩国首尔机房的云服务器的速度和性能。1、全球节点PING速度测试这里先通过PING测试工具看看全球几十个节点的PING速度。看到好像移动速度还不错。2、路由去程测试测试看看VULTR韩国首尔机房的节点...
官方网站:点击访问酷番云官网活动方案:优惠方案一(限时秒杀专场)有需要海外的可以看看,比较划算29月,建议年付划算,月付续费不同价,这个专区。国内节点可以看看,性能高IO为主, 比较少见。平常一般就100IO 左右。优惠方案二(高防专场)高防专区主要以高防为主,节点有宿迁,绍兴,成都,宁波等,节点挺多,都支持防火墙自助控制。续费同价以下专场。 优惠方案三(精选物理机)西南地区节点比较划算,赠送5...
plugin-container.exe为你推荐
lowercasecss设备ipad买家google支持ipad重庆网通重庆联通现在有哪些资费???netbios端口如何组织netbios端口的外部通信ipad上网为什么ipad网速特别慢win7telnetWin7系统中的telnet命令如何应用?iphonewifi为什么我的苹果手机连不上wifi迅雷快鸟迅雷快鸟支持移动宽带提速吗
美国服务器托管 vps是什么意思 提供香港vps 域名解析文件 域名交易网 中国万网域名 企业主机 arvixe godaddy优惠码 permitrootlogin 中国特价网 河南服务器 京东商城0元抢购 gspeed 工信部icp备案号 789电视网 183是联通还是移动 爱奇艺vip免费试用7天 vip购优惠 免费申请网站 更多