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
- TextRangeBase.cs
- Publisher.cs
- Context.cs
- InkCanvasInnerCanvas.cs
- PeerInvitationResponse.cs
- CodeDomConfigurationHandler.cs
- DeviceContexts.cs
- DoubleLinkList.cs
- RadioButtonBaseAdapter.cs
- TraceInternal.cs
- TagMapInfo.cs
- NameScopePropertyAttribute.cs
- Crc32.cs
- indexingfiltermarshaler.cs
- HttpRuntimeSection.cs
- precedingquery.cs
- SqlServices.cs
- Package.cs
- UntypedNullExpression.cs
- AddInBase.cs
- ToolStripComboBox.cs
- EntityContainerEntitySet.cs
- HighlightComponent.cs
- HtmlWindow.cs
- ProfileService.cs
- DoubleLinkList.cs
- ChannelPoolSettingsElement.cs
- PrinterUnitConvert.cs
- ObjectAssociationEndMapping.cs
- InProcStateClientManager.cs
- TimeoutValidationAttribute.cs
- NetworkInformationPermission.cs
- RandomNumberGenerator.cs
- WindowsFormsHostAutomationPeer.cs
- HttpProfileBase.cs
- GlobalEventManager.cs
- GlobalizationSection.cs
- Schema.cs
- PassportAuthentication.cs
- MaxMessageSizeStream.cs
- SqlDataSourceView.cs
- AppearanceEditorPart.cs
- LinkTarget.cs
- SqlMethodCallConverter.cs
- CompensatableSequenceActivity.cs
- ThreadStaticAttribute.cs
- SimpleMailWebEventProvider.cs
- RepeaterDesigner.cs
- UdpDiscoveryEndpointElement.cs
- Pen.cs
- SelectionEditingBehavior.cs
- webeventbuffer.cs
- WebReferencesBuildProvider.cs
- EncoderBestFitFallback.cs
- EndGetFileNameFromUserRequest.cs
- TileModeValidation.cs
- ComponentDispatcher.cs
- WindowInteropHelper.cs
- NavigationPropertyEmitter.cs
- ScriptControlDescriptor.cs
- Partitioner.cs
- LocalBuilder.cs
- DoWorkEventArgs.cs
- RelationshipWrapper.cs
- StoreAnnotationsMap.cs
- HostingEnvironmentSection.cs
- XmlSchemaIdentityConstraint.cs
- Pair.cs
- TemplateBuilder.cs
- ArglessEventHandlerProxy.cs
- InstanceCreationEditor.cs
- PersonalizationProviderCollection.cs
- RenderDataDrawingContext.cs
- OutOfProcStateClientManager.cs
- SeekableReadStream.cs
- ModuleBuilder.cs
- BrowserDefinitionCollection.cs
- LineServicesRun.cs
- HtmlTextArea.cs
- PassportAuthentication.cs
- TouchesCapturedWithinProperty.cs
- TypeExtensionSerializer.cs
- GridViewAutomationPeer.cs
- ConfigurationLocation.cs
- RemotingSurrogateSelector.cs
- InvalidProgramException.cs
- BigInt.cs
- KeyInfo.cs
- FragmentNavigationEventArgs.cs
- sqlstateclientmanager.cs
- PagePropertiesChangingEventArgs.cs
- PageBreakRecord.cs
- SkewTransform.cs
- __Error.cs
- SQLDateTime.cs
- PropVariant.cs
- ColumnResizeUndoUnit.cs
- GridViewRowCollection.cs
- ExtendedProperty.cs
- QueryOperatorEnumerator.cs