Code:
/ 4.0 / 4.0 / untmp / 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. /// ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RemoteWebConfigurationHostServer.cs
- PageThemeParser.cs
- TypedReference.cs
- UiaCoreProviderApi.cs
- AutomationPatternInfo.cs
- AttributeProviderAttribute.cs
- CapabilitiesAssignment.cs
- DecodeHelper.cs
- MailDefinition.cs
- XPathNodeList.cs
- SettingsBase.cs
- _IPv6Address.cs
- FactoryGenerator.cs
- CommonRemoteMemoryBlock.cs
- LinqDataSourceSelectEventArgs.cs
- EventArgs.cs
- ClickablePoint.cs
- LocalizedNameDescriptionPair.cs
- QilReference.cs
- UserControlDesigner.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- TimeoutValidationAttribute.cs
- WindowInteractionStateTracker.cs
- Misc.cs
- NumberSubstitution.cs
- PeerToPeerException.cs
- CacheOutputQuery.cs
- WindowsFormsSectionHandler.cs
- MenuItemBindingCollection.cs
- XpsTokenContext.cs
- BehaviorEditorPart.cs
- AvTraceFormat.cs
- StyleSelector.cs
- WebPartConnectionsDisconnectVerb.cs
- basenumberconverter.cs
- FontStyle.cs
- CollectionBuilder.cs
- ItemAutomationPeer.cs
- DesignerGeometryHelper.cs
- BindingMAnagerBase.cs
- KeyValueConfigurationCollection.cs
- webproxy.cs
- NumberAction.cs
- Header.cs
- ToggleButtonAutomationPeer.cs
- ValidationEventArgs.cs
- RewritingSimplifier.cs
- EnumValAlphaComparer.cs
- PropertyChangedEventManager.cs
- WebPartExportVerb.cs
- ToolStripPanel.cs
- SHA512.cs
- ToolStripMenuItemDesigner.cs
- SoapCodeExporter.cs
- TimeIntervalCollection.cs
- PenCursorManager.cs
- DataBindingHandlerAttribute.cs
- SoapAttributeAttribute.cs
- Bold.cs
- XamlRtfConverter.cs
- SortedList.cs
- unsafenativemethodsother.cs
- AbstractSvcMapFileLoader.cs
- DataGridViewCellStateChangedEventArgs.cs
- Matrix.cs
- XmlText.cs
- SQLDecimalStorage.cs
- PerformanceCounter.cs
- XmlQuerySequence.cs
- FlowDocumentPageViewerAutomationPeer.cs
- QilPatternVisitor.cs
- TemplatePartAttribute.cs
- MetaData.cs
- BuildProviderAppliesToAttribute.cs
- ZeroOpNode.cs
- XsltConvert.cs
- XmlDictionaryReaderQuotas.cs
- AdPostCacheSubstitution.cs
- DataGridPagerStyle.cs
- SqlProviderServices.cs
- ListenerUnsafeNativeMethods.cs
- KnownTypeAttribute.cs
- QilXmlWriter.cs
- UnsafeNativeMethods.cs
- IsolatedStoragePermission.cs
- MiniMapControl.xaml.cs
- MenuBase.cs
- transactioncontext.cs
- BrowserDefinitionCollection.cs
- ImportedNamespaceContextItem.cs
- RightsDocument.cs
- PeerNameRegistration.cs
- __FastResourceComparer.cs
- DataGridViewHeaderCell.cs
- SqlRecordBuffer.cs
- PrimitiveOperationFormatter.cs
- TemplateControl.cs
- OutputCacheProfile.cs
- EntityTypeBase.cs
- ProfileGroupSettings.cs