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
- PreviewPageInfo.cs
- ContextMenuAutomationPeer.cs
- WebHttpElement.cs
- WebPartCancelEventArgs.cs
- NamedPipeConnectionPool.cs
- QueryResponse.cs
- QueryableDataSource.cs
- CompiledQuery.cs
- ParserExtension.cs
- CalendarDay.cs
- COMException.cs
- CodeThrowExceptionStatement.cs
- MulticastDelegate.cs
- RecognizerInfo.cs
- Suspend.cs
- FrameworkObject.cs
- SourceFileBuildProvider.cs
- SelectionProcessor.cs
- LicenseManager.cs
- CompilerError.cs
- DivideByZeroException.cs
- IntegerValidator.cs
- NameSpaceExtractor.cs
- XmlAtomErrorReader.cs
- DataGridTextColumn.cs
- CodeLabeledStatement.cs
- SizeF.cs
- DbSetClause.cs
- ServiceAppDomainAssociationProvider.cs
- AllowedAudienceUriElement.cs
- TextUtf8RawTextWriter.cs
- GPRECTF.cs
- CaseInsensitiveHashCodeProvider.cs
- XamlBuildTaskServices.cs
- DecimalKeyFrameCollection.cs
- _NegoState.cs
- MessageQueueConverter.cs
- InvalidProgramException.cs
- IsolationInterop.cs
- UserControl.cs
- HttpException.cs
- HttpResponseMessageProperty.cs
- WebPartCatalogCloseVerb.cs
- Directory.cs
- DataRelationCollection.cs
- FragmentQueryKB.cs
- FrameSecurityDescriptor.cs
- OSFeature.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- AppSettingsExpressionBuilder.cs
- ItemDragEvent.cs
- ExpressionBindingCollection.cs
- CurrentTimeZone.cs
- WaitHandleCannotBeOpenedException.cs
- IsolatedStorageFilePermission.cs
- TypeElement.cs
- OrderedDictionary.cs
- IODescriptionAttribute.cs
- DefaultSerializationProviderAttribute.cs
- SecurityRuntime.cs
- UriParserTemplates.cs
- OrderByBuilder.cs
- UnionCqlBlock.cs
- ObjectNavigationPropertyMapping.cs
- DataGridViewImageCell.cs
- MatrixCamera.cs
- ContainerAction.cs
- XmlLanguage.cs
- Form.cs
- Message.cs
- GridViewColumnHeaderAutomationPeer.cs
- VectorCollection.cs
- CngKey.cs
- GACMembershipCondition.cs
- TimestampInformation.cs
- httpserverutility.cs
- _Win32.cs
- TextEvent.cs
- UnsafeNativeMethods.cs
- TextEditorSelection.cs
- Hyperlink.cs
- NegationPusher.cs
- XmlILIndex.cs
- TemplatePropertyEntry.cs
- LinqDataSourceUpdateEventArgs.cs
- SqlSelectStatement.cs
- HWStack.cs
- AdornerPresentationContext.cs
- InputScope.cs
- MouseOverProperty.cs
- Int16Storage.cs
- EncoderNLS.cs
- QilGeneratorEnv.cs
- EndpointDiscoveryElement.cs
- ChameleonKey.cs
- PackWebResponse.cs
- GatewayDefinition.cs
- VarInfo.cs
- DataQuery.cs
- SecurityTokenProvider.cs