Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- SourceFilter.cs
- xml.cs
- BooleanSwitch.cs
- _OverlappedAsyncResult.cs
- MimeMultiPart.cs
- MetadataArtifactLoaderComposite.cs
- CheckBoxRenderer.cs
- SwitchAttribute.cs
- BatchParser.cs
- Visitor.cs
- ChildChangedEventArgs.cs
- SqlDuplicator.cs
- OAVariantLib.cs
- SimpleFileLog.cs
- XmlResolver.cs
- Nodes.cs
- LocalClientSecuritySettingsElement.cs
- CodeDirectionExpression.cs
- ZipIOExtraField.cs
- BigInt.cs
- FileNotFoundException.cs
- TextSimpleMarkerProperties.cs
- Pkcs7Recipient.cs
- OutOfMemoryException.cs
- BypassElementCollection.cs
- AncillaryOps.cs
- NamespaceMapping.cs
- COAUTHIDENTITY.cs
- SimpleMailWebEventProvider.cs
- HostingPreferredMapPath.cs
- SplashScreenNativeMethods.cs
- XpsFixedDocumentReaderWriter.cs
- ExpressionBinding.cs
- ContractMapping.cs
- RelationalExpressions.cs
- LongValidatorAttribute.cs
- GuidConverter.cs
- GridViewCommandEventArgs.cs
- MouseActionConverter.cs
- XmlEncodedRawTextWriter.cs
- TextCompositionEventArgs.cs
- ReadOnlyDataSourceView.cs
- TransformerInfoCollection.cs
- EnvironmentPermission.cs
- MemberAccessException.cs
- FixedPage.cs
- SegmentInfo.cs
- CodeChecksumPragma.cs
- CloseCollectionAsyncResult.cs
- EventWaitHandleSecurity.cs
- DebugView.cs
- PackWebRequest.cs
- TextBlock.cs
- DefaultProxySection.cs
- XamlReader.cs
- Subtree.cs
- SettingsAttributeDictionary.cs
- DataPager.cs
- PersonalizationEntry.cs
- StateMachineWorkflow.cs
- XmlDeclaration.cs
- NetworkStream.cs
- MimePart.cs
- ISAPIRuntime.cs
- BuildResultCache.cs
- FlowDocumentScrollViewer.cs
- PanelDesigner.cs
- GridViewRowCollection.cs
- BrowserTree.cs
- CaseStatementProjectedSlot.cs
- SeekableMessageNavigator.cs
- XmlHelper.cs
- TypeForwardedToAttribute.cs
- MachineSettingsSection.cs
- DatePickerDateValidationErrorEventArgs.cs
- XmlReader.cs
- InProcStateClientManager.cs
- Binding.cs
- XmlSchemaSearchPattern.cs
- FontUnit.cs
- TableLayout.cs
- ProfileParameter.cs
- ProfileModule.cs
- Context.cs
- assemblycache.cs
- RegexCapture.cs
- SubMenuStyleCollection.cs
- CodeGotoStatement.cs
- TableProvider.cs
- COM2ComponentEditor.cs
- SqlRecordBuffer.cs
- InsufficientMemoryException.cs
- Rect.cs
- ContractReference.cs
- ObjectSet.cs
- Queue.cs
- Span.cs
- RegistryConfigurationProvider.cs
- ResourceManager.cs
- TreeWalker.cs