Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / CodeDOM / CodeTryCatchFinallyStatement.cs / 1 / CodeTryCatchFinallyStatement.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.CodeDom { using System.Diagnostics; using System; using Microsoft.Win32; using System.Collections; using System.Runtime.InteropServices; ////// 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; } } } }/// Gets or sets /// the finally statements to use. /// ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PropertyMap.cs
- CodeBlockBuilder.cs
- DataGridCellEditEndingEventArgs.cs
- EntityTypeBase.cs
- AccessDataSource.cs
- WebDescriptionAttribute.cs
- TerminatorSinks.cs
- UIElement3DAutomationPeer.cs
- ApplicationContext.cs
- FileUtil.cs
- SpnEndpointIdentityExtension.cs
- RequestCachePolicyConverter.cs
- ProjectionNode.cs
- ConsumerConnectionPoint.cs
- BufferedStream.cs
- FormsAuthenticationModule.cs
- Scene3D.cs
- BezierSegment.cs
- TextContainer.cs
- sqlcontext.cs
- RegionInfo.cs
- ViewManager.cs
- ScrollBarAutomationPeer.cs
- DeploymentSection.cs
- Baml2006KeyRecord.cs
- String.cs
- CmsInterop.cs
- JoinElimination.cs
- DBPropSet.cs
- objectquery_tresulttype.cs
- LingerOption.cs
- SqlOuterApplyReducer.cs
- _ListenerResponseStream.cs
- ListBindingHelper.cs
- Event.cs
- LayoutManager.cs
- FixedNode.cs
- OpenTypeLayoutCache.cs
- StackSpiller.cs
- CatalogZoneBase.cs
- StylusPointPropertyInfoDefaults.cs
- EventProxy.cs
- OrderedEnumerableRowCollection.cs
- ResourceDescriptionAttribute.cs
- ListViewGroupItemCollection.cs
- RequestCachePolicy.cs
- DetailsViewRow.cs
- String.cs
- CodeSnippetTypeMember.cs
- ContentPlaceHolder.cs
- SendKeys.cs
- PanelDesigner.cs
- TimeStampChecker.cs
- Visual.cs
- XmlDataSource.cs
- PeoplePickerWrapper.cs
- DependencyObjectProvider.cs
- TailPinnedEventArgs.cs
- XmlSignificantWhitespace.cs
- DtdParser.cs
- WaitHandle.cs
- VisualBrush.cs
- UIElement3D.cs
- EventBuilder.cs
- MultiTargetingUtil.cs
- LinqDataSourceUpdateEventArgs.cs
- AlternateViewCollection.cs
- EntityClientCacheKey.cs
- UserPersonalizationStateInfo.cs
- SecurityContext.cs
- BatchParser.cs
- ReachSerializer.cs
- SystemInfo.cs
- StackBuilderSink.cs
- X509Certificate.cs
- Pts.cs
- StylusPointPropertyUnit.cs
- HtmlHead.cs
- ColorContext.cs
- SingleKeyFrameCollection.cs
- Component.cs
- StateInitialization.cs
- TypeTypeConverter.cs
- HttpProfileGroupBase.cs
- GridLengthConverter.cs
- ThreadStateException.cs
- KnownAssembliesSet.cs
- DefaultPropertyAttribute.cs
- QueryContext.cs
- AttachedAnnotationChangedEventArgs.cs
- ConfigurationSection.cs
- RouteTable.cs
- XmlAutoDetectWriter.cs
- ChangeConflicts.cs
- MatrixTransform3D.cs
- ImageClickEventArgs.cs
- TypeBuilderInstantiation.cs
- _SafeNetHandles.cs
- BitmapEncoder.cs
- Freezable.cs