Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- VirtualPath.cs
- RIPEMD160.cs
- HttpUnhandledOperationInvoker.cs
- MDIClient.cs
- GeneralTransformGroup.cs
- CompilerCollection.cs
- DataColumnChangeEvent.cs
- SafeRightsManagementEnvironmentHandle.cs
- SerialErrors.cs
- sqlmetadatafactory.cs
- MenuBindingsEditor.cs
- XmlSchemaSimpleContentExtension.cs
- FloaterParaClient.cs
- Graph.cs
- DiscardableAttribute.cs
- RowToFieldTransformer.cs
- SharedDp.cs
- AssemblyCache.cs
- HtmlInputText.cs
- NamespaceDisplay.xaml.cs
- BrowserCapabilitiesCodeGenerator.cs
- MethodRental.cs
- ControlBuilderAttribute.cs
- MouseActionConverter.cs
- URLBuilder.cs
- BackStopAuthenticationModule.cs
- odbcmetadatacolumnnames.cs
- CellCreator.cs
- AuthorizationRule.cs
- DrawingContextDrawingContextWalker.cs
- SettingsPropertyWrongTypeException.cs
- AdjustableArrowCap.cs
- InvalidFilterCriteriaException.cs
- PnrpPeerResolverElement.cs
- TransactionChannelListener.cs
- X509ChainPolicy.cs
- ServiceDescriptionReflector.cs
- Utils.cs
- PassportAuthenticationEventArgs.cs
- CrossContextChannel.cs
- SecurityException.cs
- VirtualizingPanel.cs
- TabletDeviceInfo.cs
- EdmProviderManifest.cs
- HighlightComponent.cs
- WebPartActionVerb.cs
- PerfCounterSection.cs
- XmlSchemaSimpleTypeList.cs
- TableRowCollection.cs
- ActivityCodeGenerator.cs
- StorageInfo.cs
- GiveFeedbackEventArgs.cs
- TraceHandlerErrorFormatter.cs
- XmlNotation.cs
- BrowserCapabilitiesFactoryBase.cs
- DataTablePropertyDescriptor.cs
- grammarelement.cs
- BatchParser.cs
- MexHttpBindingCollectionElement.cs
- LabelEditEvent.cs
- TextEditorTables.cs
- DebugInfoExpression.cs
- Shared.cs
- XmlCountingReader.cs
- QilIterator.cs
- WebPartChrome.cs
- XmlHierarchicalDataSourceView.cs
- FontDriver.cs
- ProvidersHelper.cs
- Selection.cs
- InfoCardBaseException.cs
- Keywords.cs
- MemberProjectedSlot.cs
- DataGridViewControlCollection.cs
- UIElementParagraph.cs
- ConsumerConnectionPoint.cs
- CompareValidator.cs
- ISAPIWorkerRequest.cs
- VisemeEventArgs.cs
- SqlInternalConnectionTds.cs
- ValueTable.cs
- HotSpotCollection.cs
- X509CertificateClaimSet.cs
- SHA1Managed.cs
- SafeRightsManagementEnvironmentHandle.cs
- SqlTriggerAttribute.cs
- WebEventTraceProvider.cs
- DBSqlParserColumn.cs
- ObjectSet.cs
- ListViewGroupConverter.cs
- LocalFileSettingsProvider.cs
- EntityDataSourceEntityTypeFilterItem.cs
- TreeBuilderBamlTranslator.cs
- MultiPageTextView.cs
- MessageQueuePermissionEntry.cs
- DataColumnMapping.cs
- Image.cs
- UnknownMessageReceivedEventArgs.cs
- IndicFontClient.cs
- CodeMethodInvokeExpression.cs