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
- WebPartUserCapability.cs
- LinkConverter.cs
- EraserBehavior.cs
- MetadataItem.cs
- PeerNameRecord.cs
- HostExecutionContextManager.cs
- SR.cs
- RegexNode.cs
- RepeaterItemCollection.cs
- SqlCacheDependency.cs
- GenericRootAutomationPeer.cs
- ExpressionParser.cs
- HasRunnableWorkflowEvent.cs
- StateMachineDesignerPaint.cs
- FixedSOMPageConstructor.cs
- CompilationSection.cs
- MenuAdapter.cs
- XmlConvert.cs
- MaskPropertyEditor.cs
- NativeCppClassAttribute.cs
- DataObjectPastingEventArgs.cs
- DesignerObjectListAdapter.cs
- GlyphCache.cs
- UrlUtility.cs
- HMACSHA256.cs
- HtmlContainerControl.cs
- CapabilitiesState.cs
- EventBuilder.cs
- WebBrowserUriTypeConverter.cs
- OleDbParameterCollection.cs
- _LocalDataStoreMgr.cs
- DeclarativeConditionsCollection.cs
- IncomingWebRequestContext.cs
- HelloOperationAsyncResult.cs
- TreeBuilderXamlTranslator.cs
- _SingleItemRequestCache.cs
- DbReferenceCollection.cs
- SpecialTypeDataContract.cs
- UrlAuthorizationModule.cs
- TypeBuilder.cs
- ClientRuntimeConfig.cs
- WindowsTab.cs
- DataGridViewRowPostPaintEventArgs.cs
- FormsAuthenticationEventArgs.cs
- KoreanCalendar.cs
- DataColumn.cs
- PatternMatcher.cs
- XamlStyleSerializer.cs
- DirectoryRedirect.cs
- SystemSounds.cs
- ClusterRegistryConfigurationProvider.cs
- ConfigXmlSignificantWhitespace.cs
- DataGridViewHitTestInfo.cs
- SeverityFilter.cs
- FixedNode.cs
- IncrementalHitTester.cs
- DecimalConstantAttribute.cs
- NumberSubstitution.cs
- StringDictionary.cs
- recordstatescratchpad.cs
- PartialCachingAttribute.cs
- DataGridItem.cs
- PerformanceCounterPermissionAttribute.cs
- WebPartEditVerb.cs
- InvocationExpression.cs
- GridViewAutomationPeer.cs
- ObjectViewQueryResultData.cs
- TraceContextRecord.cs
- FrameworkContentElementAutomationPeer.cs
- PenContexts.cs
- PasswordBoxAutomationPeer.cs
- ArrayConverter.cs
- CheckBoxField.cs
- EnglishPluralizationService.cs
- DLinqTableProvider.cs
- ColorComboBox.cs
- XmlSecureResolver.cs
- JoinElimination.cs
- BinaryExpression.cs
- SelectorAutomationPeer.cs
- QueryableFilterRepeater.cs
- ToolStripDropDownDesigner.cs
- HtmlAnchor.cs
- MetadataArtifactLoaderResource.cs
- AdornerPresentationContext.cs
- BaseTreeIterator.cs
- XmlUtil.cs
- DoubleLinkList.cs
- MetadataResolver.cs
- PlanCompilerUtil.cs
- QueryRelOp.cs
- ObjectQueryState.cs
- SqlMethods.cs
- processwaithandle.cs
- TreeNode.cs
- OleDbInfoMessageEvent.cs
- FileCodeGroup.cs
- ThreadSafeList.cs
- RegisteredExpandoAttribute.cs
- OleDbRowUpdatedEvent.cs