Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- PreservationFileWriter.cs
- DocumentXPathNavigator.cs
- InternalsVisibleToAttribute.cs
- DeliveryRequirementsAttribute.cs
- UidManager.cs
- HierarchicalDataBoundControl.cs
- PointLightBase.cs
- PageParser.cs
- DocumentViewerHelper.cs
- AmbientLight.cs
- UIPermission.cs
- GridViewUpdateEventArgs.cs
- FrameworkElement.cs
- Lease.cs
- ConnectionPoolManager.cs
- NotSupportedException.cs
- ConsumerConnectionPointCollection.cs
- CustomWebEventKey.cs
- ToolStripContentPanelDesigner.cs
- GeneralTransform3DTo2DTo3D.cs
- SafeProcessHandle.cs
- ListItem.cs
- SocketManager.cs
- DbMetaDataCollectionNames.cs
- DefaultValidator.cs
- Brush.cs
- ErasingStroke.cs
- HtmlTitle.cs
- EncoderBestFitFallback.cs
- TableLayout.cs
- SQLStringStorage.cs
- EarlyBoundInfo.cs
- EncodingInfo.cs
- FixedSOMTextRun.cs
- WindowsToolbarItemAsMenuItem.cs
- HttpCookie.cs
- CodeNamespace.cs
- OdbcErrorCollection.cs
- SymmetricCryptoHandle.cs
- DSASignatureFormatter.cs
- DesignTimeDataBinding.cs
- GridViewCancelEditEventArgs.cs
- XmlNodeList.cs
- safelinkcollection.cs
- ResourcePermissionBase.cs
- Cursor.cs
- EventWaitHandle.cs
- ServerType.cs
- VerticalConnector.xaml.cs
- XmlCharCheckingWriter.cs
- Argument.cs
- SeekableReadStream.cs
- ToolStrip.cs
- WebPartVerb.cs
- SqlAliaser.cs
- TemplateBuilder.cs
- SelectedCellsCollection.cs
- ServicePointManagerElement.cs
- XmlRootAttribute.cs
- HtmlInputControl.cs
- XmlSchemaIdentityConstraint.cs
- DataBindingHandlerAttribute.cs
- EncryptedKeyIdentifierClause.cs
- BufferedReceiveManager.cs
- SQLSingleStorage.cs
- Nodes.cs
- RegionData.cs
- TreeViewAutomationPeer.cs
- ProcessManager.cs
- ReadOnlyActivityGlyph.cs
- Collection.cs
- RsaSecurityToken.cs
- SqlNodeAnnotations.cs
- ELinqQueryState.cs
- VirtualPathUtility.cs
- ConditionedDesigner.cs
- SmtpNegotiateAuthenticationModule.cs
- DropTarget.cs
- NumericExpr.cs
- RectangleGeometry.cs
- BitmapEffectInputConnector.cs
- ComponentDesigner.cs
- DeadCharTextComposition.cs
- XpsFilter.cs
- GPPOINT.cs
- UrlMappingCollection.cs
- MatrixCamera.cs
- _AcceptOverlappedAsyncResult.cs
- DESCryptoServiceProvider.cs
- SchemaCollectionPreprocessor.cs
- TextEditorMouse.cs
- SafeNativeMethodsMilCoreApi.cs
- UnsafeNativeMethods.cs
- DragDropManager.cs
- DateTimeOffsetConverter.cs
- CacheVirtualItemsEvent.cs
- X509ChainPolicy.cs
- InvalidOleVariantTypeException.cs
- DataControlExtensions.cs
- XmlSerializerVersionAttribute.cs