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
- altserialization.cs
- Set.cs
- DbBuffer.cs
- MulticastDelegate.cs
- DateTimeFormatInfoScanner.cs
- VisualBasic.cs
- WebPermission.cs
- EventLogPermissionAttribute.cs
- VisualStyleTypesAndProperties.cs
- XmlArrayAttribute.cs
- RtfFormatStack.cs
- MdImport.cs
- XsltLibrary.cs
- XmlUrlResolver.cs
- HostingEnvironmentException.cs
- MouseBinding.cs
- RuleProcessor.cs
- LocatorManager.cs
- StringComparer.cs
- ControlAdapter.cs
- ProcessModule.cs
- VisualTreeUtils.cs
- MILUtilities.cs
- Axis.cs
- PersonalizableTypeEntry.cs
- QilPatternVisitor.cs
- TransformerInfoCollection.cs
- X509Certificate2.cs
- ShaderEffect.cs
- LogWriteRestartAreaAsyncResult.cs
- DBCSCodePageEncoding.cs
- PropertyFilterAttribute.cs
- ComponentCollection.cs
- ListViewUpdatedEventArgs.cs
- QilName.cs
- Pipe.cs
- Ray3DHitTestResult.cs
- ArrangedElementCollection.cs
- CookieParameter.cs
- EntityContainer.cs
- Transform3DGroup.cs
- TimeSpanValidator.cs
- OleDbFactory.cs
- Nullable.cs
- RuntimeHandles.cs
- XamlInt32CollectionSerializer.cs
- InheritablePropertyChangeInfo.cs
- BindingWorker.cs
- HiddenField.cs
- IdentityHolder.cs
- DownloadProgressEventArgs.cs
- CheckBoxBaseAdapter.cs
- SQLSingleStorage.cs
- XamlDesignerSerializationManager.cs
- IsolatedStorageFileStream.cs
- GridItemCollection.cs
- ErrorRuntimeConfig.cs
- Vector3dCollection.cs
- NamespaceListProperty.cs
- DbParameterCollection.cs
- UserInitiatedRoutedEventPermission.cs
- ControlIdConverter.cs
- InternalSafeNativeMethods.cs
- SqlClientWrapperSmiStreamChars.cs
- SizeConverter.cs
- ReaderWriterLock.cs
- Assert.cs
- CqlParser.cs
- BrowserCapabilitiesCodeGenerator.cs
- OptimalTextSource.cs
- FieldMetadata.cs
- BaseDataList.cs
- DeploymentSection.cs
- ToolBarTray.cs
- webbrowsersite.cs
- PeerApplicationLaunchInfo.cs
- CategoryNameCollection.cs
- BinaryObjectInfo.cs
- ItemsControlAutomationPeer.cs
- DispatcherFrame.cs
- ClientProxyGenerator.cs
- PageAction.cs
- CharEnumerator.cs
- SafeRegistryHandle.cs
- SoapTypeAttribute.cs
- RemotingServices.cs
- FormView.cs
- SerializationEventsCache.cs
- SqlNodeAnnotations.cs
- FixedSOMPageElement.cs
- Exception.cs
- SpecialNameAttribute.cs
- OdbcRowUpdatingEvent.cs
- srgsitem.cs
- activationcontext.cs
- ControlCachePolicy.cs
- ClipboardData.cs
- WebPartMenu.cs
- MouseBinding.cs
- CompensationToken.cs