Code:
/ 4.0 / 4.0 / 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. /// ///// // //----------------------------------------------------------------------------- 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
- ExpressionBinding.cs
- SessionParameter.cs
- SignedXml.cs
- Misc.cs
- SafeNativeMethods.cs
- ReadOnlyAttribute.cs
- activationcontext.cs
- ReadWriteObjectLock.cs
- RtfToXamlReader.cs
- URL.cs
- elementinformation.cs
- BezierSegment.cs
- Error.cs
- StandardToolWindows.cs
- TypeElement.cs
- DummyDataSource.cs
- CaseExpr.cs
- StsCommunicationException.cs
- XmlCharType.cs
- MetadataCache.cs
- PropertyItemInternal.cs
- DataGridViewColumn.cs
- _SslStream.cs
- FixedFindEngine.cs
- GridViewEditEventArgs.cs
- XmlDataSourceView.cs
- ImageSourceTypeConverter.cs
- Help.cs
- LicFileLicenseProvider.cs
- HttpWebResponse.cs
- CharEntityEncoderFallback.cs
- ResolveNameEventArgs.cs
- SmiGettersStream.cs
- ColumnWidthChangedEvent.cs
- CustomCategoryAttribute.cs
- LambdaSerializationException.cs
- ScriptDescriptor.cs
- EntityCommandCompilationException.cs
- PlatformCulture.cs
- BamlResourceContent.cs
- PrintDialogException.cs
- DoubleStorage.cs
- LayoutDump.cs
- DefaultAsyncDataDispatcher.cs
- MultipleViewProviderWrapper.cs
- HttpResponseMessageProperty.cs
- XpsSerializerWriter.cs
- DynamicDiscoveryDocument.cs
- UseAttributeSetsAction.cs
- WebCategoryAttribute.cs
- WebPartMinimizeVerb.cs
- CodeSubDirectory.cs
- SqlDependency.cs
- OleStrCAMarshaler.cs
- Line.cs
- BaseDataBoundControl.cs
- RadioButtonFlatAdapter.cs
- ExtensibleClassFactory.cs
- TypeReference.cs
- EventlogProvider.cs
- EllipseGeometry.cs
- Lookup.cs
- oledbmetadatacolumnnames.cs
- OleDbConnectionInternal.cs
- ControlEvent.cs
- Literal.cs
- ParallelForEach.cs
- FileEnumerator.cs
- IOException.cs
- DataGridItem.cs
- GeometryHitTestResult.cs
- PKCS1MaskGenerationMethod.cs
- LassoSelectionBehavior.cs
- EncoderNLS.cs
- MatcherBuilder.cs
- CollectionContainer.cs
- BookmarkScopeManager.cs
- DoubleCollection.cs
- ColumnMap.cs
- SoapTypeAttribute.cs
- OleDbConnectionFactory.cs
- Window.cs
- ControlCollection.cs
- SafeNativeMethodsOther.cs
- SpellerHighlightLayer.cs
- DataControlButton.cs
- BrowserCapabilitiesFactoryBase.cs
- OracleTransaction.cs
- DataSourceControl.cs
- DiffuseMaterial.cs
- DataTableTypeConverter.cs
- PictureBox.cs
- RootBrowserWindow.cs
- InternalsVisibleToAttribute.cs
- BinaryObjectReader.cs
- PanelDesigner.cs
- PersonalizableTypeEntry.cs
- EFDataModelProvider.cs
- EnterpriseServicesHelper.cs
- RightNameExpirationInfoPair.cs