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
- GeometryGroup.cs
- HttpHandler.cs
- GB18030Encoding.cs
- DbSourceParameterCollection.cs
- Delegate.cs
- QualificationDataAttribute.cs
- OSFeature.cs
- BitStack.cs
- CollectionCodeDomSerializer.cs
- TerminatorSinks.cs
- DBConnection.cs
- MissingManifestResourceException.cs
- TokenBasedSetEnumerator.cs
- StyleReferenceConverter.cs
- OdbcCommandBuilder.cs
- InitializationEventAttribute.cs
- ManualResetEvent.cs
- AddingNewEventArgs.cs
- Attributes.cs
- querybuilder.cs
- SoapMessage.cs
- QueryStringParameter.cs
- ConfigurationSection.cs
- UnsafeNativeMethods.cs
- DefaultBinder.cs
- SelectedGridItemChangedEvent.cs
- PtsContext.cs
- Timer.cs
- ToolStripSeparator.cs
- TransportListener.cs
- WindowsSolidBrush.cs
- ParseChildrenAsPropertiesAttribute.cs
- ItemCheckedEvent.cs
- ValueQuery.cs
- RequestCachePolicy.cs
- RecordConverter.cs
- OutputCacheProfileCollection.cs
- XmlRawWriter.cs
- ObfuscateAssemblyAttribute.cs
- StylusPointProperties.cs
- ModelPerspective.cs
- Scene3D.cs
- StorageConditionPropertyMapping.cs
- Delegate.cs
- CreateInstanceBinder.cs
- IndexedGlyphRun.cs
- DesignerRegion.cs
- ListBoxItemAutomationPeer.cs
- TextProperties.cs
- AssemblyInfo.cs
- PathFigureCollectionConverter.cs
- HashAlgorithm.cs
- BoolExpression.cs
- TdsParserStaticMethods.cs
- FamilyCollection.cs
- XamlPointCollectionSerializer.cs
- TextFragmentEngine.cs
- ListCommandEventArgs.cs
- DispatchWrapper.cs
- PlaceHolder.cs
- EncoderBestFitFallback.cs
- ProfileProvider.cs
- CaseStatement.cs
- QueryStringParameter.cs
- milexports.cs
- ZipIOLocalFileHeader.cs
- FormViewModeEventArgs.cs
- AuthenticationException.cs
- PrivilegeNotHeldException.cs
- EmbossBitmapEffect.cs
- SqlExpander.cs
- FollowerQueueCreator.cs
- ReferencedType.cs
- CompilerResults.cs
- Point3DAnimationUsingKeyFrames.cs
- MethodBuilder.cs
- HttpHeaderCollection.cs
- Choices.cs
- _LocalDataStore.cs
- FileDialogCustomPlace.cs
- FileLevelControlBuilderAttribute.cs
- PreviewPrintController.cs
- OperatorExpressions.cs
- Int32RectConverter.cs
- NativeMethodsCLR.cs
- DiagnosticsConfiguration.cs
- EncryptedPackage.cs
- ResourceManagerWrapper.cs
- ClientBuildManagerCallback.cs
- AttachInfo.cs
- WebColorConverter.cs
- EntityCommandCompilationException.cs
- BaseDataList.cs
- StylusLogic.cs
- ChtmlSelectionListAdapter.cs
- ScaleTransform.cs
- TransactionContextManager.cs
- SendingRequestEventArgs.cs
- _IPv4Address.cs
- GacUtil.cs