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
- TextSchema.cs
- ColorContext.cs
- AnnouncementInnerClient11.cs
- WebPartRestoreVerb.cs
- Mutex.cs
- Int32Animation.cs
- XmlTextReader.cs
- ValueType.cs
- TemplatePropertyEntry.cs
- SortExpressionBuilder.cs
- DesignerLoader.cs
- BamlMapTable.cs
- ParameterBuilder.cs
- BaseCodeDomTreeGenerator.cs
- Profiler.cs
- CellParaClient.cs
- InputLanguageManager.cs
- RequestCachePolicy.cs
- HtmlGenericControl.cs
- SystemColorTracker.cs
- HighContrastHelper.cs
- CfgParser.cs
- __Filters.cs
- ListViewTableRow.cs
- ViewBox.cs
- PartitionResolver.cs
- DbConnectionHelper.cs
- TraceUtility.cs
- RepeatInfo.cs
- ServiceBuildProvider.cs
- SqlMethodTransformer.cs
- FileDetails.cs
- SByteStorage.cs
- CookielessData.cs
- XmlObjectSerializerReadContextComplexJson.cs
- Span.cs
- Freezable.cs
- EncryptedPackageFilter.cs
- OleAutBinder.cs
- HwndProxyElementProvider.cs
- SqlLiftIndependentRowExpressions.cs
- TextDecoration.cs
- TextRangeAdaptor.cs
- _LocalDataStore.cs
- DataServiceKeyAttribute.cs
- RowsCopiedEventArgs.cs
- WeakHashtable.cs
- IOException.cs
- FrameworkObject.cs
- TargetParameterCountException.cs
- ExceptionRoutedEventArgs.cs
- OptimizerPatterns.cs
- Bold.cs
- FormViewPageEventArgs.cs
- TagPrefixInfo.cs
- ControlPropertyNameConverter.cs
- XamlWriter.cs
- PermissionSetEnumerator.cs
- IntMinMaxAggregationOperator.cs
- TcpSocketManager.cs
- PrintingPermissionAttribute.cs
- TableLayoutCellPaintEventArgs.cs
- Baml2006ReaderContext.cs
- TreeNodeCollectionEditor.cs
- ExpressionNode.cs
- BaseCollection.cs
- EventPrivateKey.cs
- MetadataCache.cs
- XPathException.cs
- Item.cs
- ListViewSelectEventArgs.cs
- CapabilitiesSection.cs
- DesignOnlyAttribute.cs
- HtmlGenericControl.cs
- TaiwanCalendar.cs
- ReferencedType.cs
- ConnectionOrientedTransportManager.cs
- AnnotationComponentManager.cs
- RpcCryptoRequest.cs
- CryptoApi.cs
- DataGridTemplateColumn.cs
- InputReport.cs
- TraceContextEventArgs.cs
- ClosableStream.cs
- MatrixUtil.cs
- ReachDocumentPageSerializer.cs
- StructuredTypeInfo.cs
- DataRecordInfo.cs
- DiscoveryServerProtocol.cs
- NumericExpr.cs
- InProcStateClientManager.cs
- FontFaceLayoutInfo.cs
- SQLSingleStorage.cs
- HtmlElementCollection.cs
- SrgsRuleRef.cs
- PathParser.cs
- DesignTimeParseData.cs
- InputReferenceExpression.cs
- parserscommon.cs
- Pointer.cs