Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / CodeTryCatchFinallyStatement.cs / 1305376 / CodeTryCatchFinallyStatement.cs
//------------------------------------------------------------------------------ //// // //----------------------------------------------------------------------------- namespace System.CodeDom { using System.Diagnostics; using System; using Microsoft.Win32; using System.Collections; using System.Runtime.InteropServices; ///[....] // Copyright (c) Microsoft Corporation. All rights reserved. ///// Represents a try block, with any number of catch clauses and an /// optionally finally block. /// [ ClassInterface(ClassInterfaceType.AutoDispatch), ComVisible(true), Serializable, ] public class CodeTryCatchFinallyStatement : CodeStatement { private CodeStatementCollection tryStatments = new CodeStatementCollection(); private CodeStatementCollection finallyStatments = new CodeStatementCollection(); private CodeCatchClauseCollection catchClauses = new CodeCatchClauseCollection(); ////// public CodeTryCatchFinallyStatement() { } ////// Initializes a new instance of ///. /// /// public CodeTryCatchFinallyStatement(CodeStatement[] tryStatements, CodeCatchClause[] catchClauses) { TryStatements.AddRange(tryStatements); CatchClauses.AddRange(catchClauses); } ////// Initializes a new instance of ///using the specified statements to try and catch /// clauses. /// /// public CodeTryCatchFinallyStatement(CodeStatement[] tryStatements, CodeCatchClause[] catchClauses, CodeStatement[] finallyStatements) { TryStatements.AddRange(tryStatements); CatchClauses.AddRange(catchClauses); FinallyStatements.AddRange(finallyStatements); } ////// Initializes a new instance of ///using the specified statements to /// try, catch clauses, and finally statements. /// /// public CodeStatementCollection TryStatements { get { return tryStatments; } } ////// Gets or sets /// the try statements to try. /// ////// public CodeCatchClauseCollection CatchClauses { get { return catchClauses; } } ////// Gets or sets the catch clauses to use. /// ////// public CodeStatementCollection FinallyStatements { get { return finallyStatments; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// Gets or sets /// the finally statements to use. /// ///// // //----------------------------------------------------------------------------- namespace System.CodeDom { using System.Diagnostics; using System; using Microsoft.Win32; using System.Collections; using System.Runtime.InteropServices; ///[....] // Copyright (c) Microsoft Corporation. All rights reserved. ///// Represents a try block, with any number of catch clauses and an /// optionally finally block. /// [ ClassInterface(ClassInterfaceType.AutoDispatch), ComVisible(true), Serializable, ] public class CodeTryCatchFinallyStatement : CodeStatement { private CodeStatementCollection tryStatments = new CodeStatementCollection(); private CodeStatementCollection finallyStatments = new CodeStatementCollection(); private CodeCatchClauseCollection catchClauses = new CodeCatchClauseCollection(); ////// public CodeTryCatchFinallyStatement() { } ////// Initializes a new instance of ///. /// /// public CodeTryCatchFinallyStatement(CodeStatement[] tryStatements, CodeCatchClause[] catchClauses) { TryStatements.AddRange(tryStatements); CatchClauses.AddRange(catchClauses); } ////// Initializes a new instance of ///using the specified statements to try and catch /// clauses. /// /// public CodeTryCatchFinallyStatement(CodeStatement[] tryStatements, CodeCatchClause[] catchClauses, CodeStatement[] finallyStatements) { TryStatements.AddRange(tryStatements); CatchClauses.AddRange(catchClauses); FinallyStatements.AddRange(finallyStatements); } ////// Initializes a new instance of ///using the specified statements to /// try, catch clauses, and finally statements. /// /// public CodeStatementCollection TryStatements { get { return tryStatments; } } ////// Gets or sets /// the try statements to try. /// ////// public CodeCatchClauseCollection CatchClauses { get { return catchClauses; } } ////// Gets or sets the catch clauses to use. /// ////// public CodeStatementCollection FinallyStatements { get { return finallyStatments; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// Gets or sets /// the finally statements to use. /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- UserUseLicenseDictionaryLoader.cs
- FormView.cs
- InternalTransaction.cs
- Sequence.cs
- ErrorFormatter.cs
- PersistenceException.cs
- WebWorkflowRole.cs
- clipboard.cs
- AssemblyName.cs
- PackageFilter.cs
- ToolStripComboBox.cs
- lengthconverter.cs
- WebCategoryAttribute.cs
- InsufficientMemoryException.cs
- ChoiceConverter.cs
- TypeConverterValueSerializer.cs
- EmbeddedMailObjectCollectionEditor.cs
- LinearGradientBrush.cs
- DiscoveryReferences.cs
- ObjectDataSourceSelectingEventArgs.cs
- TransformGroup.cs
- XmlSchemaIdentityConstraint.cs
- CatalogPart.cs
- AffineTransform3D.cs
- CustomPopupPlacement.cs
- storepermission.cs
- NavigationPropertyEmitter.cs
- WsatStrings.cs
- ApplicationDirectory.cs
- LogRestartAreaEnumerator.cs
- SeverityFilter.cs
- linebase.cs
- WorkflowDefinitionDispenser.cs
- SessionStateModule.cs
- EntityViewGenerator.cs
- ObjectMemberMapping.cs
- RawTextInputReport.cs
- TypeSystemProvider.cs
- ObjectPersistData.cs
- TextServicesPropertyRanges.cs
- SqlCacheDependencyDatabaseCollection.cs
- SingleResultAttribute.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- EntityModelSchemaGenerator.cs
- ControlHelper.cs
- InternalPolicyElement.cs
- Pair.cs
- DataRelation.cs
- PageHandlerFactory.cs
- ContourSegment.cs
- SpeechRecognizer.cs
- CallId.cs
- FixUp.cs
- Clause.cs
- OpenTypeLayout.cs
- DataGridViewAdvancedBorderStyle.cs
- SecurityContext.cs
- DataServiceRequestException.cs
- BulletChrome.cs
- Vector3D.cs
- AngleUtil.cs
- lengthconverter.cs
- CodeGeneratorAttribute.cs
- StandardBindingImporter.cs
- AlignmentYValidation.cs
- XhtmlTextWriter.cs
- ContextDataSourceContextData.cs
- xmlformatgeneratorstatics.cs
- SmtpAuthenticationManager.cs
- MsmqNonTransactedPoisonHandler.cs
- IndexedString.cs
- SqlConnectionFactory.cs
- ScrollViewerAutomationPeer.cs
- ProfileParameter.cs
- HeaderUtility.cs
- QuaternionRotation3D.cs
- EdmScalarPropertyAttribute.cs
- GuidTagList.cs
- objectquery_tresulttype.cs
- SelectionEditingBehavior.cs
- RelationalExpressions.cs
- OutputBuffer.cs
- CreateUserWizardAutoFormat.cs
- ExtenderControl.cs
- DataGridViewCellValueEventArgs.cs
- Event.cs
- WindowsStatic.cs
- IntranetCredentialPolicy.cs
- ItemsControlAutomationPeer.cs
- ToolStripItemDataObject.cs
- UnknownMessageReceivedEventArgs.cs
- DllHostedComPlusServiceHost.cs
- FileDataSourceCache.cs
- Scripts.cs
- MetadataArtifactLoaderComposite.cs
- UITypeEditor.cs
- FontSourceCollection.cs
- MetabaseServerConfig.cs
- D3DImage.cs
- OdbcRowUpdatingEvent.cs