Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / CodeTryCatchFinallyStatement.cs / 1305376 / CodeTryCatchFinallyStatement.cs
//------------------------------------------------------------------------------ //// // //----------------------------------------------------------------------------- namespace System.CodeDom { using System.Diagnostics; using System; using Microsoft.Win32; using System.Collections; using System.Runtime.InteropServices; ///[....] // Copyright (c) Microsoft Corporation. All rights reserved. ///// 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
- MonthChangedEventArgs.cs
- DbParameterCollection.cs
- SecureStringHasher.cs
- ContextMenu.cs
- ResourcePropertyMemberCodeDomSerializer.cs
- Literal.cs
- ListenerElementsCollection.cs
- BindableAttribute.cs
- SystemColors.cs
- XmlReaderDelegator.cs
- CodeConditionStatement.cs
- TextEditorThreadLocalStore.cs
- RegisteredHiddenField.cs
- IPPacketInformation.cs
- RuleSetDialog.Designer.cs
- TimerElapsedEvenArgs.cs
- FileCodeGroup.cs
- KerberosTicketHashIdentifierClause.cs
- XmlSerializerAssemblyAttribute.cs
- BaseCodePageEncoding.cs
- SqlDataSourceView.cs
- ColumnWidthChangingEvent.cs
- AttributeCollection.cs
- PassportAuthenticationModule.cs
- ToolStripMenuItem.cs
- EditorAttribute.cs
- EndpointAddressProcessor.cs
- ToolTipAutomationPeer.cs
- Stackframe.cs
- ComponentManagerBroker.cs
- Run.cs
- NamespaceEmitter.cs
- DoubleLinkListEnumerator.cs
- IERequestCache.cs
- ProviderUtil.cs
- InputLangChangeRequestEvent.cs
- DocumentViewer.cs
- XmlAttributeOverrides.cs
- UserControlAutomationPeer.cs
- MsmqIntegrationSecurityElement.cs
- CreateUserWizardAutoFormat.cs
- HttpStreams.cs
- ReferencedType.cs
- TcpPortSharing.cs
- HotSpotCollection.cs
- ResourcesBuildProvider.cs
- DebugView.cs
- DynamicActionMessageFilter.cs
- GestureRecognitionResult.cs
- Compiler.cs
- OperatorExpressions.cs
- SimpleMailWebEventProvider.cs
- DataKey.cs
- ObjectAnimationBase.cs
- RijndaelCryptoServiceProvider.cs
- PersonalizationStateInfoCollection.cs
- NameObjectCollectionBase.cs
- HandlerFactoryCache.cs
- XmlDesignerDataSourceView.cs
- ConditionalExpression.cs
- JournalNavigationScope.cs
- SignatureToken.cs
- ConsoleCancelEventArgs.cs
- HijriCalendar.cs
- PrimaryKeyTypeConverter.cs
- XNodeValidator.cs
- OptionalColumn.cs
- XPathBuilder.cs
- Inflater.cs
- ProcessHostFactoryHelper.cs
- CssClassPropertyAttribute.cs
- MailMessageEventArgs.cs
- TypedReference.cs
- MessageQueueInstaller.cs
- ZipIOCentralDirectoryFileHeader.cs
- Environment.cs
- DetailsViewPagerRow.cs
- X509IssuerSerialKeyIdentifierClause.cs
- RoutedCommand.cs
- UnsafeCollabNativeMethods.cs
- ScrollableControl.cs
- Base64Stream.cs
- GeneralTransformGroup.cs
- CultureInfoConverter.cs
- PackWebResponse.cs
- EventLogPermissionAttribute.cs
- HtmlTableRow.cs
- GiveFeedbackEventArgs.cs
- AnnotationAuthorChangedEventArgs.cs
- Fx.cs
- XmlIgnoreAttribute.cs
- InputLanguage.cs
- SerializationHelper.cs
- RegularExpressionValidator.cs
- TextBreakpoint.cs
- URLAttribute.cs
- ExtractedStateEntry.cs
- BinarySerializer.cs
- GraphicsState.cs
- DataGridViewCellEventArgs.cs