Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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; } } } }/// Gets or sets /// the finally statements to use. /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BufferBuilder.cs
- SchemaMapping.cs
- DataGridViewAccessibleObject.cs
- PointIndependentAnimationStorage.cs
- StateMachineSubscriptionManager.cs
- PointHitTestParameters.cs
- SignatureDescription.cs
- CreatingCookieEventArgs.cs
- HttpContextServiceHost.cs
- DoubleStorage.cs
- EdmConstants.cs
- CompoundFileReference.cs
- ObjectViewListener.cs
- IOException.cs
- CompilationPass2TaskInternal.cs
- SystemThemeKey.cs
- Decoder.cs
- AnchoredBlock.cs
- CallbackHandler.cs
- DriveNotFoundException.cs
- SafeSystemMetrics.cs
- XmlTypeAttribute.cs
- SmiMetaData.cs
- ConfigurationLocation.cs
- EventListener.cs
- InitialServerConnectionReader.cs
- WinEventQueueItem.cs
- ReferenceConverter.cs
- OracleDateTime.cs
- EventListener.cs
- ExpandSegment.cs
- LinkedResource.cs
- AtomicFile.cs
- BaseConfigurationRecord.cs
- MinimizableAttributeTypeConverter.cs
- WebConvert.cs
- OdbcUtils.cs
- graph.cs
- IdentityNotMappedException.cs
- WsatServiceAddress.cs
- TreeNodeConverter.cs
- ResourceDescriptionAttribute.cs
- HttpListenerPrefixCollection.cs
- AccessedThroughPropertyAttribute.cs
- AsyncOperation.cs
- CreateUserWizardDesigner.cs
- ComplexType.cs
- CheckBox.cs
- CommandEventArgs.cs
- PropertyDescriptorCollection.cs
- NegotiateStream.cs
- DeflateEmulationStream.cs
- XmlNodeList.cs
- TextEditorTyping.cs
- SynchronizedCollection.cs
- XPathQilFactory.cs
- DataGridViewTextBoxEditingControl.cs
- TypographyProperties.cs
- AccessDataSourceView.cs
- GenericTypeParameterConverter.cs
- UserPersonalizationStateInfo.cs
- SchemaDeclBase.cs
- ToolStripItem.cs
- TagMapCollection.cs
- UnhandledExceptionEventArgs.cs
- ContextMarshalException.cs
- QueueAccessMode.cs
- Collection.cs
- DataServiceStreamResponse.cs
- SrgsGrammar.cs
- AppDomainProtocolHandler.cs
- SimpleTypeResolver.cs
- SortQuery.cs
- HttpRuntime.cs
- WebControl.cs
- PropertyBuilder.cs
- CustomBindingElementCollection.cs
- WebPartPersonalization.cs
- DynamicUpdateCommand.cs
- MenuBindingsEditorForm.cs
- TreeChangeInfo.cs
- XamlClipboardData.cs
- DecimalAverageAggregationOperator.cs
- XPathMultyIterator.cs
- ConfigXmlCDataSection.cs
- DBDataPermissionAttribute.cs
- SymbolEqualComparer.cs
- XamlSerializerUtil.cs
- ClusterRegistryConfigurationProvider.cs
- ExportOptions.cs
- SchemaSetCompiler.cs
- IdentityModelStringsVersion1.cs
- SpecialFolderEnumConverter.cs
- SspiNegotiationTokenProvider.cs
- XPathBinder.cs
- RegexMatchCollection.cs
- ListView.cs
- CacheForPrimitiveTypes.cs
- SqlDataReader.cs
- SecurityAttributeGenerationHelper.cs