Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- OdbcParameterCollection.cs
- TreeWalker.cs
- WindowsTokenRoleProvider.cs
- ButtonRenderer.cs
- FileDialogCustomPlacesCollection.cs
- KnownTypesProvider.cs
- LazyTextWriterCreator.cs
- DataGridViewCellValidatingEventArgs.cs
- ColorConvertedBitmap.cs
- BuiltInExpr.cs
- RepeaterDesigner.cs
- ModuleConfigurationInfo.cs
- BindingMemberInfo.cs
- SqlConnectionPoolProviderInfo.cs
- TraceProvider.cs
- IndexerNameAttribute.cs
- KeyBinding.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- EFTableProvider.cs
- Opcode.cs
- GraphicsPathIterator.cs
- ConfigurationStrings.cs
- EventManager.cs
- ListSortDescription.cs
- CellConstantDomain.cs
- InternalCache.cs
- CacheManager.cs
- ControlDesigner.cs
- SevenBitStream.cs
- DynamicDataExtensions.cs
- PersonalizableTypeEntry.cs
- TrustSection.cs
- DataGridViewIntLinkedList.cs
- SystemSounds.cs
- DataControlFieldHeaderCell.cs
- SafeNativeMethods.cs
- IriParsingElement.cs
- TableRow.cs
- Image.cs
- SimpleApplicationHost.cs
- StreamMarshaler.cs
- Keywords.cs
- FaultDesigner.cs
- DataGridHeaderBorder.cs
- DataGridParentRows.cs
- FilterException.cs
- XsltSettings.cs
- PaintEvent.cs
- QuaternionAnimationUsingKeyFrames.cs
- DeferredSelectedIndexReference.cs
- HtmlPhoneCallAdapter.cs
- DtdParser.cs
- IItemContainerGenerator.cs
- FontNamesConverter.cs
- WebDisplayNameAttribute.cs
- SqlGatherProducedAliases.cs
- BulletedListDesigner.cs
- ToolStripScrollButton.cs
- StyleSheet.cs
- HttpWebRequest.cs
- XamlStyleSerializer.cs
- BitStream.cs
- PolicyFactory.cs
- DependencySource.cs
- MatrixConverter.cs
- StringStorage.cs
- MSHTMLHost.cs
- QueryStringConverter.cs
- XmlBufferedByteStreamReader.cs
- Stack.cs
- DataServiceCollectionOfT.cs
- QuadTree.cs
- PermissionSet.cs
- NodeFunctions.cs
- ContextMenuAutomationPeer.cs
- ListenerConfig.cs
- DocumentReferenceCollection.cs
- ScriptRegistrationManager.cs
- QilFunction.cs
- ColumnHeaderConverter.cs
- ExceptionAggregator.cs
- PolicyConversionContext.cs
- CaseStatementSlot.cs
- Application.cs
- TransactionsSectionGroup.cs
- IsolatedStorage.cs
- SelectedDatesCollection.cs
- ProcessRequestArgs.cs
- TempFiles.cs
- SqlMultiplexer.cs
- StreamInfo.cs
- FileFormatException.cs
- Condition.cs
- IArgumentProvider.cs
- CommandField.cs
- ExtenderProvidedPropertyAttribute.cs
- XmlRawWriter.cs
- OdbcConnectionStringbuilder.cs
- PropertyChange.cs
- MsmqOutputChannel.cs