Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } } }/// Gets or sets /// the finally statements to use. /// ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- IfJoinedCondition.cs
- ConfigXmlAttribute.cs
- ExceptionAggregator.cs
- UnsafeNativeMethods.cs
- SiteMapDesignerDataSourceView.cs
- OperationPickerDialog.cs
- TemplateControl.cs
- DiscoveryInnerClientAdhocCD1.cs
- MsmqIntegrationBindingElement.cs
- ColumnMapProcessor.cs
- ValidatorCompatibilityHelper.cs
- FrameAutomationPeer.cs
- TreeNodeBinding.cs
- FixedHighlight.cs
- EntitySqlQueryCacheKey.cs
- Calendar.cs
- PolyBezierSegmentFigureLogic.cs
- WebScriptEndpointElement.cs
- RsaSecurityTokenParameters.cs
- DependencyPropertyValueSerializer.cs
- ListChunk.cs
- WebPartHeaderCloseVerb.cs
- BufferedStream.cs
- DeflateStreamAsyncResult.cs
- ConvertTextFrag.cs
- UIPropertyMetadata.cs
- BridgeDataReader.cs
- Claim.cs
- Rijndael.cs
- CalendarDateRange.cs
- TdsParserStaticMethods.cs
- TemplateBindingExpression.cs
- OpenFileDialog.cs
- SizeChangedEventArgs.cs
- StaticExtension.cs
- RegisterResponseInfo.cs
- CodeAssignStatement.cs
- Int16Storage.cs
- HttpPostServerProtocol.cs
- NotCondition.cs
- TemplateComponentConnector.cs
- Line.cs
- PropertyNames.cs
- HtmlInputReset.cs
- JournalEntryStack.cs
- LogWriteRestartAreaState.cs
- DataSourceXmlAttributeAttribute.cs
- UnitySerializationHolder.cs
- ObservableCollection.cs
- Section.cs
- ContentType.cs
- EventSinkHelperWriter.cs
- SecurityKeyIdentifier.cs
- PeerContact.cs
- ProjectionPath.cs
- Dictionary.cs
- VisualTreeHelper.cs
- HttpCachePolicyWrapper.cs
- InstrumentationTracker.cs
- ProxyWebPartManager.cs
- WindowInteropHelper.cs
- ZipIOModeEnforcingStream.cs
- NamedObject.cs
- MenuItemStyleCollection.cs
- SpeechSeg.cs
- ProxyWebPartConnectionCollection.cs
- ProfilePropertyMetadata.cs
- SharedPersonalizationStateInfo.cs
- SelectionEditingBehavior.cs
- TextModifier.cs
- SynchronizationHandlesCodeDomSerializer.cs
- IdentityModelDictionary.cs
- Int16AnimationBase.cs
- Matrix.cs
- BinaryReader.cs
- PerspectiveCamera.cs
- ExceptionUtil.cs
- xdrvalidator.cs
- ServiceDurableInstanceContextProvider.cs
- SqlErrorCollection.cs
- arc.cs
- HttpContextServiceHost.cs
- HttpClientCertificate.cs
- Section.cs
- XmlBaseReader.cs
- CustomBindingElementCollection.cs
- SelectionItemPattern.cs
- Mappings.cs
- MetafileHeaderWmf.cs
- ArrangedElement.cs
- UnsafeNativeMethods.cs
- WebPartZone.cs
- TableHeaderCell.cs
- EventLogTraceListener.cs
- Object.cs
- NestPullup.cs
- InvokeProviderWrapper.cs
- Command.cs
- WsiProfilesElementCollection.cs
- BinaryReader.cs