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
- ToolStripSplitButton.cs
- FormParameter.cs
- JournalEntry.cs
- PhysicalAddress.cs
- SafePipeHandle.cs
- ProcessingInstructionAction.cs
- DBSchemaTable.cs
- WebPartChrome.cs
- FontEmbeddingManager.cs
- ClientTarget.cs
- Merger.cs
- OdbcTransaction.cs
- PathFigureCollection.cs
- ExpandCollapseProviderWrapper.cs
- TypeConverterHelper.cs
- ImageConverter.cs
- ProtocolImporter.cs
- PermissionSetTriple.cs
- ScrollChangedEventArgs.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- BufferedStream.cs
- KeySpline.cs
- SrgsDocumentParser.cs
- ManipulationDevice.cs
- ObjectNavigationPropertyMapping.cs
- ProtocolElementCollection.cs
- DecimalConstantAttribute.cs
- isolationinterop.cs
- XamlDesignerSerializationManager.cs
- HandlerBase.cs
- CatalogPartCollection.cs
- ShadowGlyph.cs
- MenuItem.cs
- XamlSerializer.cs
- DiffuseMaterial.cs
- BlockUIContainer.cs
- ProfilePropertySettings.cs
- SafeEventHandle.cs
- ProcessThreadCollection.cs
- ExpressionBuilder.cs
- XmlReaderSettings.cs
- HtmlControlDesigner.cs
- CharStorage.cs
- TemplateField.cs
- InvokePattern.cs
- TextRangeEditLists.cs
- LockCookie.cs
- SqlTriggerContext.cs
- CompilerState.cs
- SpellCheck.cs
- TypeDescriptionProvider.cs
- ListViewItemCollectionEditor.cs
- ScrollEvent.cs
- HttpProtocolReflector.cs
- CompoundFileIOPermission.cs
- QilName.cs
- MessageQueueCriteria.cs
- OutgoingWebRequestContext.cs
- cookieexception.cs
- Message.cs
- Int64Animation.cs
- PerformanceCounterPermission.cs
- CapabilitiesState.cs
- DataGridViewCellConverter.cs
- DesignerAttribute.cs
- EllipseGeometry.cs
- EventWaitHandleSecurity.cs
- PropertyEmitter.cs
- CollectionBase.cs
- MailMessage.cs
- WebPartCloseVerb.cs
- HwndSourceKeyboardInputSite.cs
- NotifyInputEventArgs.cs
- FloaterBaseParagraph.cs
- storagemappingitemcollection.viewdictionary.cs
- DataGridViewAdvancedBorderStyle.cs
- InvalidPropValue.cs
- MultiPageTextView.cs
- AvTraceFormat.cs
- DataViewManager.cs
- StylusButtonCollection.cs
- UrlParameterReader.cs
- PublishLicense.cs
- FileDataSource.cs
- AxImporter.cs
- SimpleHandlerBuildProvider.cs
- UnSafeCharBuffer.cs
- ConfigurationLockCollection.cs
- TypeCollectionDesigner.xaml.cs
- DeflateEmulationStream.cs
- XmlElementList.cs
- SqlException.cs
- HyperLinkField.cs
- FacetDescriptionElement.cs
- CharKeyFrameCollection.cs
- Base64Encoding.cs
- SqlError.cs
- DesignTimeData.cs
- QilChoice.cs
- DataGridViewRowErrorTextNeededEventArgs.cs