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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TriggerActionCollection.cs
- TreeNodeCollection.cs
- glyphs.cs
- TrueReadOnlyCollection.cs
- PropertyRef.cs
- PropertyEmitterBase.cs
- IdnElement.cs
- ExpressionBuilderCollection.cs
- ProfileParameter.cs
- NodeInfo.cs
- ShaderEffect.cs
- SafeFileHandle.cs
- SplitterPanel.cs
- DataListCommandEventArgs.cs
- CustomAttributeFormatException.cs
- IntAverageAggregationOperator.cs
- FloaterBaseParaClient.cs
- Base64Decoder.cs
- SimpleBitVector32.cs
- Cursor.cs
- ConnectionStringsSection.cs
- _IPv4Address.cs
- EastAsianLunisolarCalendar.cs
- DesignerActionService.cs
- TileBrush.cs
- ElementProxy.cs
- OrderedHashRepartitionStream.cs
- BindingCompleteEventArgs.cs
- TextTreeDeleteContentUndoUnit.cs
- Addressing.cs
- HtmlElementErrorEventArgs.cs
- URL.cs
- VBIdentifierNameEditor.cs
- FtpCachePolicyElement.cs
- ExpressionPrinter.cs
- TypeReference.cs
- Boolean.cs
- DbConnectionClosed.cs
- Repeater.cs
- KnownBoxes.cs
- BooleanAnimationBase.cs
- DispatchChannelSink.cs
- XmlBufferReader.cs
- ButtonRenderer.cs
- TableSectionStyle.cs
- XmlHierarchicalDataSourceView.cs
- FrameAutomationPeer.cs
- SetIndexBinder.cs
- FieldBuilder.cs
- AttachmentService.cs
- DropDownList.cs
- XPathNodeInfoAtom.cs
- Classification.cs
- InvalidDataException.cs
- FloaterParaClient.cs
- Label.cs
- ThicknessAnimationBase.cs
- PropertyReferenceSerializer.cs
- BindUriHelper.cs
- UnmanagedBitmapWrapper.cs
- WindowsTreeView.cs
- SqlServer2KCompatibilityAnnotation.cs
- UmAlQuraCalendar.cs
- ResXBuildProvider.cs
- WorkflowRuntimeElement.cs
- CalendarDesigner.cs
- AngleUtil.cs
- Visual3D.cs
- AnnotationResourceCollection.cs
- XmlCompatibilityReader.cs
- DesignerOptionService.cs
- ContentType.cs
- FileInfo.cs
- ListBoxItem.cs
- ColorMap.cs
- OlePropertyStructs.cs
- RowUpdatingEventArgs.cs
- StateFinalizationDesigner.cs
- Graphics.cs
- EncoderNLS.cs
- XmlAnyElementAttribute.cs
- RijndaelCryptoServiceProvider.cs
- InstanceKeyNotReadyException.cs
- CalendarDesigner.cs
- DataTableMappingCollection.cs
- ListControl.cs
- XamlSerializationHelper.cs
- SizeConverter.cs
- ListSortDescriptionCollection.cs
- MonthCalendar.cs
- XsdDateTime.cs
- RepeatBehavior.cs
- TypeExtensionSerializer.cs
- OperationCanceledException.cs
- baseshape.cs
- WindowsImpersonationContext.cs
- FontDialog.cs
- TableItemPatternIdentifiers.cs
- TypeUtil.cs
- FlowNode.cs