Code:
/ FX-1434 / FX-1434 / 1.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
- ServiceModelInstallComponent.cs
- DebugInfoGenerator.cs
- MDIControlStrip.cs
- ExportOptions.cs
- EnumUnknown.cs
- DataControlFieldCell.cs
- CompilerInfo.cs
- ProcessModule.cs
- DecoderBestFitFallback.cs
- XmlNodeList.cs
- Route.cs
- ArrayElementGridEntry.cs
- BlurBitmapEffect.cs
- ClassicBorderDecorator.cs
- XmlDownloadManager.cs
- RegexFCD.cs
- XmlCharType.cs
- SystemIPInterfaceProperties.cs
- FaultContractInfo.cs
- Rect3DConverter.cs
- IntSecurity.cs
- SqlInternalConnectionTds.cs
- TreeIterators.cs
- CorrelationTokenTypeConvertor.cs
- ActivityDesignerResources.cs
- FontStretch.cs
- InfoCardClaimCollection.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- SpeechRecognizer.cs
- DocumentApplicationJournalEntryEventArgs.cs
- OleDbPropertySetGuid.cs
- DoubleLinkListEnumerator.cs
- FunctionMappingTranslator.cs
- HotSpot.cs
- DPCustomTypeDescriptor.cs
- RoutedEvent.cs
- EdmTypeAttribute.cs
- ConfigPathUtility.cs
- SchemaNotation.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- StandardToolWindows.cs
- Emitter.cs
- Enum.cs
- TypeSemantics.cs
- _Win32.cs
- ValidatorCollection.cs
- ToolStripDropDownMenu.cs
- LinkArea.cs
- OdbcParameter.cs
- WizardStepBase.cs
- AcceleratedTokenAuthenticator.cs
- WebPartEditVerb.cs
- DetailsViewInsertedEventArgs.cs
- TemplateColumn.cs
- WebHeaderCollection.cs
- TreeView.cs
- DataSpaceManager.cs
- OptimizedTemplateContent.cs
- SubMenuStyleCollection.cs
- CheckBoxList.cs
- UserMapPath.cs
- DataRowExtensions.cs
- PipelineModuleStepContainer.cs
- MiniCustomAttributeInfo.cs
- TimeSpanConverter.cs
- XmlSchemaExporter.cs
- ProxyAttribute.cs
- Vector3DConverter.cs
- WeakHashtable.cs
- CodeCompileUnit.cs
- DeploymentExceptionMapper.cs
- TemplateControlCodeDomTreeGenerator.cs
- connectionpool.cs
- ErrorEventArgs.cs
- ClientFormsAuthenticationMembershipProvider.cs
- AnnotationAuthorChangedEventArgs.cs
- BinaryObjectWriter.cs
- SingleObjectCollection.cs
- LayoutTableCell.cs
- ZipIOBlockManager.cs
- XmlNodeComparer.cs
- DataServiceClientException.cs
- OrderByBuilder.cs
- ReadOnlyDictionary.cs
- TranslateTransform.cs
- SQLBytesStorage.cs
- StorageBasedPackageProperties.cs
- ReadOnlyDictionary.cs
- AdRotatorDesigner.cs
- TdsParserStaticMethods.cs
- SetIterators.cs
- DataColumnCollection.cs
- X509CertificateCollection.cs
- SafeFileMappingHandle.cs
- TypeDependencyAttribute.cs
- FixedTextBuilder.cs
- RecordManager.cs
- BamlLocalizableResourceKey.cs
- EntityException.cs
- DataSourceSelectArguments.cs