Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// Gets or sets /// the finally statements to use. /// ///// 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; } } } } // 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
- AsyncSerializedWorker.cs
- ColumnMapTranslator.cs
- AsymmetricSignatureDeformatter.cs
- ErrorWrapper.cs
- XmlSchemaProviderAttribute.cs
- ListViewUpdateEventArgs.cs
- FileDialog.cs
- ReflectionUtil.cs
- XPathDocumentNavigator.cs
- FixedBufferAttribute.cs
- CopyNamespacesAction.cs
- BindStream.cs
- GeometryHitTestResult.cs
- OdbcFactory.cs
- AssemblyBuilder.cs
- UndirectedGraph.cs
- CroppedBitmap.cs
- SecurityPolicySection.cs
- ModuleConfigurationInfo.cs
- SQLResource.cs
- AnimationLayer.cs
- ConstraintCollection.cs
- AsyncOperation.cs
- PassportPrincipal.cs
- FrameSecurityDescriptor.cs
- HostSecurityManager.cs
- SizeKeyFrameCollection.cs
- BindingsCollection.cs
- ControlBuilder.cs
- Tuple.cs
- PkcsMisc.cs
- CaseInsensitiveComparer.cs
- TimelineGroup.cs
- ByteAnimationUsingKeyFrames.cs
- NotifyCollectionChangedEventArgs.cs
- PageRouteHandler.cs
- StrictModeSecurityHeaderElementInferenceEngine.cs
- LiteralControl.cs
- NodeLabelEditEvent.cs
- EmissiveMaterial.cs
- PropertyDescriptor.cs
- OpenFileDialog.cs
- WebScriptClientGenerator.cs
- log.cs
- InvariantComparer.cs
- wgx_sdk_version.cs
- EncoderParameters.cs
- TraceLog.cs
- WebPartHelpVerb.cs
- ComponentEditorForm.cs
- RootBuilder.cs
- AssemblySettingAttributes.cs
- FilterableAttribute.cs
- QilLoop.cs
- SecureStringHasher.cs
- InteropEnvironment.cs
- NamespaceList.cs
- URLString.cs
- Switch.cs
- DeferredReference.cs
- ExtendedProperty.cs
- OptimizedTemplateContent.cs
- Vector3D.cs
- WebPartConnectionsEventArgs.cs
- SafeNativeMethods.cs
- EventSinkActivity.cs
- MimeTypePropertyAttribute.cs
- InfoCardTrace.cs
- UpDownEvent.cs
- StringSorter.cs
- safemediahandle.cs
- Debugger.cs
- GCHandleCookieTable.cs
- TreeView.cs
- CacheOutputQuery.cs
- Membership.cs
- DBParameter.cs
- XmlNullResolver.cs
- XmlSchemaAll.cs
- Script.cs
- VirtualPath.cs
- XmlUtf8RawTextWriter.cs
- DataGridColumnCollection.cs
- ActivityInstanceReference.cs
- LocatorBase.cs
- CollectionConverter.cs
- XmlSchemaAll.cs
- OracleParameterBinding.cs
- Effect.cs
- BasicBrowserDialog.cs
- CompressionTransform.cs
- templategroup.cs
- EventsTab.cs
- ClientApiGenerator.cs
- OutOfProcStateClientManager.cs
- DrawingState.cs
- DescendantQuery.cs
- AnnotationResource.cs
- RijndaelManaged.cs
- ExtensionQuery.cs