Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// Gets or sets /// the finally statements to use. /// ///// 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; } } } } // 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
- LinkedResourceCollection.cs
- ToolStripHighContrastRenderer.cs
- CodeArrayIndexerExpression.cs
- RMEnrollmentPage2.cs
- TextEditorCopyPaste.cs
- BamlLocalizer.cs
- BackoffTimeoutHelper.cs
- GridViewCellAutomationPeer.cs
- SelectedCellsChangedEventArgs.cs
- COSERVERINFO.cs
- SamlSubjectStatement.cs
- Axis.cs
- HtmlInputText.cs
- CodeDirectionExpression.cs
- XmlSchemaSimpleContentRestriction.cs
- XmlWriter.cs
- ByteConverter.cs
- MethodToken.cs
- OdbcParameter.cs
- AccessDataSourceView.cs
- CompilerTypeWithParams.cs
- GridViewDesigner.cs
- ArgIterator.cs
- StringWriter.cs
- SystemFonts.cs
- EndpointBehaviorElement.cs
- WebPartEditorCancelVerb.cs
- XmlLinkedNode.cs
- SkipQueryOptionExpression.cs
- NumberSubstitution.cs
- CharEnumerator.cs
- ComponentCollection.cs
- ContextProperty.cs
- EntryPointNotFoundException.cs
- DataTableReader.cs
- SchemaExporter.cs
- OletxDependentTransaction.cs
- Transform3DCollection.cs
- HostingEnvironmentException.cs
- SpellerHighlightLayer.cs
- HtmlButton.cs
- CompModSwitches.cs
- ExpressionBuilderCollection.cs
- RequestCache.cs
- SqlXml.cs
- QilScopedVisitor.cs
- IItemContainerGenerator.cs
- SqlCacheDependencyDatabase.cs
- ComponentEditorPage.cs
- LocalFileSettingsProvider.cs
- DrawItemEvent.cs
- ErrorFormatterPage.cs
- ValidationErrorEventArgs.cs
- _FtpDataStream.cs
- XmlImplementation.cs
- FunctionCommandText.cs
- SqlDataSourceQuery.cs
- XmlRawWriter.cs
- LayoutEvent.cs
- DrawingDrawingContext.cs
- ClientUrlResolverWrapper.cs
- Splitter.cs
- UnmanagedMemoryStream.cs
- Point4DValueSerializer.cs
- TextureBrush.cs
- SelectionManager.cs
- StrokeNodeData.cs
- FileLoadException.cs
- ProxyAttribute.cs
- GregorianCalendar.cs
- NameValueFileSectionHandler.cs
- FixedSOMTableCell.cs
- WorkflowView.cs
- Registration.cs
- SpeechRecognizer.cs
- CodeChecksumPragma.cs
- BasicCommandTreeVisitor.cs
- DataGridViewColumnHeaderCell.cs
- Stack.cs
- Transactions.cs
- TextServicesCompartmentEventSink.cs
- ConfigXmlSignificantWhitespace.cs
- XmlSchemaInferenceException.cs
- DateTimeFormatInfoScanner.cs
- VirtualizedItemProviderWrapper.cs
- SID.cs
- LongValidator.cs
- StrokeFIndices.cs
- ContextMenuStrip.cs
- WindowsAuthenticationEventArgs.cs
- SapiRecoInterop.cs
- SystemFonts.cs
- Point4DValueSerializer.cs
- SvcMapFileLoader.cs
- SetStateDesigner.cs
- AssemblySettingAttributes.cs
- MessageHeaderDescriptionCollection.cs
- ToolStripContainerDesigner.cs
- GridViewDeleteEventArgs.cs
- ParagraphResult.cs