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
- DeviceSpecificChoice.cs
- UnaryNode.cs
- WindowsFormsSectionHandler.cs
- BamlTreeMap.cs
- CodeDirectiveCollection.cs
- MaterialGroup.cs
- EUCJPEncoding.cs
- ToolStripContentPanel.cs
- ToolStripContainer.cs
- EventHandlersDesigner.cs
- IQueryable.cs
- PathSegmentCollection.cs
- TokenFactoryFactory.cs
- XmlElementCollection.cs
- PartBasedPackageProperties.cs
- FileUpload.cs
- SpellerHighlightLayer.cs
- ConfigXmlText.cs
- ClearTypeHintValidation.cs
- FrameworkElement.cs
- UrlMappingsSection.cs
- SchemaElement.cs
- TextSearch.cs
- RequestCacheManager.cs
- MessageCredentialType.cs
- SeparatorAutomationPeer.cs
- DataGridViewCellCancelEventArgs.cs
- HtmlGenericControl.cs
- CodeRegionDirective.cs
- ValidatingReaderNodeData.cs
- XPathNavigatorKeyComparer.cs
- Stream.cs
- HtmlControl.cs
- DocumentXPathNavigator.cs
- COM2PropertyPageUITypeConverter.cs
- Menu.cs
- TranslateTransform3D.cs
- Stroke.cs
- DeferrableContentConverter.cs
- SqlBooleanMismatchVisitor.cs
- TableCellCollection.cs
- CmsInterop.cs
- XmlTextReader.cs
- DbConnectionPoolOptions.cs
- IntAverageAggregationOperator.cs
- BamlResourceDeserializer.cs
- ParameterElement.cs
- ObjectViewListener.cs
- OdbcStatementHandle.cs
- _ConnectOverlappedAsyncResult.cs
- updatecommandorderer.cs
- CodeCompileUnit.cs
- ToolStripPanelCell.cs
- Profiler.cs
- HttpApplicationFactory.cs
- DataControlButton.cs
- MappingException.cs
- CommonGetThemePartSize.cs
- WebPartCatalogAddVerb.cs
- DetailsViewInsertedEventArgs.cs
- NTAccount.cs
- OpenFileDialog.cs
- MessageSecurityProtocolFactory.cs
- DataGridViewCell.cs
- future.cs
- PerSessionInstanceContextProvider.cs
- MultilineStringConverter.cs
- ObjectStateManagerMetadata.cs
- DateTimeFormatInfo.cs
- LinkTarget.cs
- MessageQueue.cs
- Transform3D.cs
- SR.cs
- FileDialog.cs
- SplitterCancelEvent.cs
- WebBaseEventKeyComparer.cs
- DataMemberFieldEditor.cs
- TdsParserStateObject.cs
- WindowsClientCredential.cs
- ContentHostHelper.cs
- ExpressionBindings.cs
- WorkflowServiceHost.cs
- FileIOPermission.cs
- DesignerResources.cs
- ZoneLinkButton.cs
- MetabaseSettingsIis7.cs
- DetailsView.cs
- ContainsSearchOperator.cs
- ContextBase.cs
- GetPageCompletedEventArgs.cs
- RenderDataDrawingContext.cs
- TemplateColumn.cs
- DataGridCellsPanel.cs
- ViewStateChangedEventArgs.cs
- FileFormatException.cs
- EditCommandColumn.cs
- PrintPreviewControl.cs
- FixedHyperLink.cs
- SQLByte.cs
- AssemblyNameProxy.cs