Code:
/ 4.0 / 4.0 / 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. /// ///// // //----------------------------------------------------------------------------- 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
- InvokeGenerator.cs
- EntityContainerAssociationSet.cs
- SHA512.cs
- XmlReaderSettings.cs
- PropertyToken.cs
- GenericTypeParameterConverter.cs
- RichTextBoxAutomationPeer.cs
- CheckBoxBaseAdapter.cs
- Rijndael.cs
- InvalidDataException.cs
- SoapAttributes.cs
- StringAnimationBase.cs
- DPTypeDescriptorContext.cs
- Encoder.cs
- NamedPermissionSet.cs
- FreezableDefaultValueFactory.cs
- LinkedResource.cs
- DataViewSetting.cs
- NetMsmqSecurity.cs
- InputScopeConverter.cs
- SupportingTokenDuplexChannel.cs
- StateBag.cs
- ColumnMapProcessor.cs
- DataGridViewCellConverter.cs
- SettingsBase.cs
- ColorTranslator.cs
- TouchesOverProperty.cs
- SizeFConverter.cs
- HebrewCalendar.cs
- Run.cs
- IgnoreDataMemberAttribute.cs
- RequestContext.cs
- WindowsListBox.cs
- StylusPlugInCollection.cs
- Send.cs
- InvokePattern.cs
- Calendar.cs
- ReadContentAsBinaryHelper.cs
- EntryWrittenEventArgs.cs
- Decimal.cs
- DataFormats.cs
- MethodExpr.cs
- CollectionDataContractAttribute.cs
- TextTreeTextNode.cs
- XamlTemplateSerializer.cs
- ContentIterators.cs
- DataServiceHost.cs
- GlobalizationAssembly.cs
- GridLength.cs
- SapiInterop.cs
- OdbcInfoMessageEvent.cs
- HtmlButton.cs
- BamlRecords.cs
- BaseTemplateParser.cs
- AnnotationComponentManager.cs
- LZCodec.cs
- XMLSchema.cs
- PeerInvitationResponse.cs
- Label.cs
- Translator.cs
- EventHandlersDesigner.cs
- StickyNoteAnnotations.cs
- MouseOverProperty.cs
- UnSafeCharBuffer.cs
- TypeTypeConverter.cs
- ValueCollectionParameterReader.cs
- EntityDesignerUtils.cs
- DefaultProxySection.cs
- HyperlinkAutomationPeer.cs
- BulletChrome.cs
- VScrollProperties.cs
- OutputCacheSettings.cs
- RequestTimeoutManager.cs
- ValidationErrorCollection.cs
- VectorAnimationBase.cs
- mactripleDES.cs
- messageonlyhwndwrapper.cs
- brushes.cs
- NavigationWindow.cs
- HMACMD5.cs
- CachedPathData.cs
- Decimal.cs
- ErrorStyle.cs
- ColumnHeaderConverter.cs
- RenderData.cs
- DynamicQueryableWrapper.cs
- GroupPartitionExpr.cs
- SecurityState.cs
- ContextMarshalException.cs
- SafeIUnknown.cs
- XmlProcessingInstruction.cs
- RoutingChannelExtension.cs
- listitem.cs
- CancelRequestedQuery.cs
- ResXResourceWriter.cs
- DecimalStorage.cs
- MediaContext.cs
- DynamicDocumentPaginator.cs
- SslSecurityTokenParameters.cs
- ParserExtension.cs