Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- XPathDocumentIterator.cs
- NgenServicingAttributes.cs
- InternalBase.cs
- ConfigurationValidatorAttribute.cs
- RowCache.cs
- ExternalException.cs
- AppDomainProtocolHandler.cs
- UndoEngine.cs
- jithelpers.cs
- FlowDocumentReader.cs
- DataGridClipboardHelper.cs
- counter.cs
- MetafileEditor.cs
- WorkflowMarkupSerializer.cs
- FlatButtonAppearance.cs
- OperatingSystem.cs
- SqlReorderer.cs
- RefreshPropertiesAttribute.cs
- ItemAutomationPeer.cs
- TextSelectionProcessor.cs
- CodeCastExpression.cs
- FontNamesConverter.cs
- NonBatchDirectoryCompiler.cs
- SectionVisual.cs
- ClientSession.cs
- RegisteredExpandoAttribute.cs
- ListViewGroup.cs
- EntityCommand.cs
- RowToFieldTransformer.cs
- BitmapEffectRenderDataResource.cs
- CodeRemoveEventStatement.cs
- AuthenticationException.cs
- DbConnectionStringCommon.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- CompiledQuery.cs
- ContextMenuAutomationPeer.cs
- Journaling.cs
- Ipv6Element.cs
- DelegateBodyWriter.cs
- CustomPeerResolverService.cs
- XPathScanner.cs
- MouseButtonEventArgs.cs
- XmlSchemaAnyAttribute.cs
- FlowDocumentPaginator.cs
- SSmlParser.cs
- TextSpanModifier.cs
- TableLayoutSettings.cs
- ListViewCancelEventArgs.cs
- KeyedHashAlgorithm.cs
- ScriptBehaviorDescriptor.cs
- DataRecord.cs
- ProcessModelInfo.cs
- DataControlLinkButton.cs
- ItemCheckedEvent.cs
- Geometry3D.cs
- LogicalTreeHelper.cs
- Debug.cs
- ElementAction.cs
- TrustLevel.cs
- SubMenuStyle.cs
- ReadWriteSpinLock.cs
- StylusEditingBehavior.cs
- OdbcCommand.cs
- ColorMap.cs
- ControlUtil.cs
- PackageDigitalSignatureManager.cs
- SchemaAttDef.cs
- WmlSelectionListAdapter.cs
- XPathNodePointer.cs
- SkipStoryboardToFill.cs
- MessageSecurityProtocolFactory.cs
- SystemResources.cs
- Popup.cs
- AvTraceFormat.cs
- CodeMemberProperty.cs
- XomlCompilerResults.cs
- MsmqMessageProperty.cs
- ResourcesBuildProvider.cs
- HierarchicalDataSourceControl.cs
- GridViewItemAutomationPeer.cs
- PasswordRecoveryAutoFormat.cs
- CompilationUnit.cs
- SettingsSection.cs
- EmptyReadOnlyDictionaryInternal.cs
- NotFiniteNumberException.cs
- StreamGeometry.cs
- SqlConnectionString.cs
- ProfessionalColorTable.cs
- GPPOINTF.cs
- MailAddress.cs
- TemplateEditingService.cs
- XmlObjectSerializerReadContextComplex.cs
- LateBoundBitmapDecoder.cs
- ListBindingConverter.cs
- AliasedSlot.cs
- DataGridViewCellValueEventArgs.cs
- DiscoveryOperationContext.cs
- MenuItem.cs
- QueryNode.cs
- ForwardPositionQuery.cs