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
- NetworkAddressChange.cs
- Journal.cs
- HelloOperationAsyncResult.cs
- AuthenticatingEventArgs.cs
- _ScatterGatherBuffers.cs
- HttpClientCertificate.cs
- AdornerLayer.cs
- BaseTreeIterator.cs
- MetadataFile.cs
- NumericUpDown.cs
- ConfigurationValidatorBase.cs
- AspNetHostingPermission.cs
- NullableLongMinMaxAggregationOperator.cs
- TextProperties.cs
- ElapsedEventArgs.cs
- SQLBytesStorage.cs
- AnimatedTypeHelpers.cs
- Win32PrintDialog.cs
- ObjectSet.cs
- WorkflowApplicationUnhandledExceptionEventArgs.cs
- CompilerState.cs
- DrawingContext.cs
- NetworkInterface.cs
- OpCodes.cs
- SoapRpcMethodAttribute.cs
- CharEntityEncoderFallback.cs
- ToolStripPanelCell.cs
- HttpListenerTimeoutManager.cs
- AsyncOperationManager.cs
- RepeaterItemCollection.cs
- ReadOnlyObservableCollection.cs
- Function.cs
- ObjectTokenCategory.cs
- BitmapMetadataEnumerator.cs
- StaticContext.cs
- StylusDevice.cs
- ColumnResult.cs
- ComplusEndpointConfigContainer.cs
- EnumerableRowCollection.cs
- DataTableReaderListener.cs
- TypeInformation.cs
- Int16Storage.cs
- ViewBox.cs
- ContextBase.cs
- DbParameterCollection.cs
- CodeMethodInvokeExpression.cs
- ListViewHitTestInfo.cs
- ConfigXmlElement.cs
- CounterSampleCalculator.cs
- StorageAssociationSetMapping.cs
- ReadOnlyDataSource.cs
- PassportAuthenticationModule.cs
- FlowLayoutPanel.cs
- NativeMethods.cs
- SafeHandles.cs
- SoapTypeAttribute.cs
- ProxySimple.cs
- IncrementalCompileAnalyzer.cs
- AttachmentCollection.cs
- DocumentReference.cs
- EntityTransaction.cs
- Misc.cs
- ProviderSettings.cs
- ACE.cs
- AxWrapperGen.cs
- FormClosingEvent.cs
- BitStream.cs
- DrawItemEvent.cs
- Source.cs
- ResizeGrip.cs
- TextElementCollection.cs
- XmlILConstructAnalyzer.cs
- VScrollBar.cs
- CompositeDuplexBindingElement.cs
- PageBuildProvider.cs
- MethodBody.cs
- SqlCacheDependency.cs
- TreeNodeSelectionProcessor.cs
- EditorPartCollection.cs
- BooleanAnimationUsingKeyFrames.cs
- SecurityKeyIdentifier.cs
- CodeGen.cs
- HitTestParameters.cs
- RegexGroupCollection.cs
- GrammarBuilderWildcard.cs
- SimpleMailWebEventProvider.cs
- UnsafeCollabNativeMethods.cs
- XLinq.cs
- xml.cs
- Expander.cs
- ProfileGroupSettings.cs
- DataTableMapping.cs
- Utils.cs
- WebControlsSection.cs
- BinaryObjectWriter.cs
- BCLDebug.cs
- CryptographicAttribute.cs
- SpecularMaterial.cs
- Geometry.cs
- ALinqExpressionVisitor.cs