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
- TextEffectResolver.cs
- CellNormalizer.cs
- SingleKeyFrameCollection.cs
- LocalizedNameDescriptionPair.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- ScriptResourceAttribute.cs
- DataException.cs
- CompressEmulationStream.cs
- DependencyPropertyAttribute.cs
- ValueQuery.cs
- TreeNodeCollection.cs
- RuleInfoComparer.cs
- Polygon.cs
- StatusBar.cs
- ClassHandlersStore.cs
- ImageConverter.cs
- AuthenticodeSignatureInformation.cs
- ActiveXHelper.cs
- RouteParameter.cs
- Constants.cs
- WebPartConnection.cs
- DataGridViewCellCancelEventArgs.cs
- SqlXmlStorage.cs
- odbcmetadatacollectionnames.cs
- SrgsToken.cs
- ValidationError.cs
- XmlSchemaSimpleType.cs
- InvokeGenerator.cs
- KerberosRequestorSecurityTokenAuthenticator.cs
- DataBoundControlAdapter.cs
- ReceiveParametersContent.cs
- GCHandleCookieTable.cs
- TargetControlTypeCache.cs
- COM2Enum.cs
- CaseInsensitiveComparer.cs
- TimerElapsedEvenArgs.cs
- MemberProjectedSlot.cs
- StylusButtonEventArgs.cs
- TextDecorationUnitValidation.cs
- IODescriptionAttribute.cs
- ByeMessageCD1.cs
- ConfigDefinitionUpdates.cs
- FieldInfo.cs
- DelegateOutArgument.cs
- DocumentAutomationPeer.cs
- RightsManagementInformation.cs
- DataGridViewHitTestInfo.cs
- SelectiveScrollingGrid.cs
- exports.cs
- ThreadAbortException.cs
- RelatedView.cs
- KeyFrames.cs
- SmiConnection.cs
- AppSettingsExpressionEditor.cs
- SizeAnimationUsingKeyFrames.cs
- DbProviderFactories.cs
- XomlCompilerParameters.cs
- WebControlsSection.cs
- IgnoreDeviceFilterElementCollection.cs
- InlineObject.cs
- Dynamic.cs
- GridEntry.cs
- FormsAuthenticationTicket.cs
- UiaCoreTypesApi.cs
- ClientUtils.cs
- SQLInt32.cs
- SourceInterpreter.cs
- BamlCollectionHolder.cs
- QilFunction.cs
- ContainerParaClient.cs
- PopupRootAutomationPeer.cs
- SaveFileDialog.cs
- CompilerLocalReference.cs
- StsCommunicationException.cs
- TableItemStyle.cs
- IPPacketInformation.cs
- SinglePageViewer.cs
- Events.cs
- ViewEventArgs.cs
- TreeNodeCollection.cs
- List.cs
- CryptoKeySecurity.cs
- OrthographicCamera.cs
- ScaleTransform.cs
- Win32NamedPipes.cs
- SecurityBindingElementImporter.cs
- SimpleBitVector32.cs
- TextBounds.cs
- TrackingMemoryStream.cs
- RectAnimationUsingKeyFrames.cs
- externdll.cs
- OutputCacheProfile.cs
- OperationValidationEventArgs.cs
- MsmqBindingMonitor.cs
- GeneralTransform3DGroup.cs
- CriticalFinalizerObject.cs
- ServicePointManagerElement.cs
- Section.cs
- DataServiceBuildProvider.cs
- CollectionExtensions.cs