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
- _ListenerAsyncResult.cs
- WebPartZoneBaseDesigner.cs
- XmlBinaryWriterSession.cs
- LogStream.cs
- XmlSchemaSimpleTypeRestriction.cs
- XpsStructure.cs
- KeyInfo.cs
- Dynamic.cs
- RealProxy.cs
- LogReserveAndAppendState.cs
- PenThread.cs
- FrameworkReadOnlyPropertyMetadata.cs
- ReadingWritingEntityEventArgs.cs
- UnmanagedMarshal.cs
- EditorPartChrome.cs
- FormCollection.cs
- MailMessage.cs
- ContextItemManager.cs
- MultiBindingExpression.cs
- InvalidPropValue.cs
- SoapAttributeOverrides.cs
- WebPartCancelEventArgs.cs
- AuthorizationSection.cs
- DataGridViewCellConverter.cs
- WorkflowRuntimeSection.cs
- XmlSiteMapProvider.cs
- _NestedMultipleAsyncResult.cs
- DataSourceControlBuilder.cs
- SqlClientWrapperSmiStreamChars.cs
- ArrayConverter.cs
- ConsoleEntryPoint.cs
- SplineQuaternionKeyFrame.cs
- StringCollection.cs
- BitmapEffect.cs
- Visual.cs
- RuleRefElement.cs
- StorageFunctionMapping.cs
- InputScopeConverter.cs
- DocumentViewerAutomationPeer.cs
- Int32RectValueSerializer.cs
- DSASignatureDeformatter.cs
- UncommonField.cs
- OdbcRowUpdatingEvent.cs
- InfoCardProofToken.cs
- VsPropertyGrid.cs
- StringConverter.cs
- Select.cs
- KeyPressEvent.cs
- UIElementPropertyUndoUnit.cs
- DataServiceProviderMethods.cs
- TextComposition.cs
- TreeWalkHelper.cs
- TextAction.cs
- ToolStripTextBox.cs
- XamlClipboardData.cs
- BindingContext.cs
- HtmlElement.cs
- RequestQueryParser.cs
- Constraint.cs
- SchemaLookupTable.cs
- CodeTypeDeclarationCollection.cs
- NativeMethods.cs
- ErrorRuntimeConfig.cs
- Function.cs
- TypedDatasetGenerator.cs
- WizardStepBase.cs
- UIElement.cs
- StreamMarshaler.cs
- StringValidatorAttribute.cs
- DiscoveryViaBehavior.cs
- TextShapeableCharacters.cs
- DataRowView.cs
- SchemaSetCompiler.cs
- DateTimeConstantAttribute.cs
- TextChange.cs
- EntityDataSourceDesigner.cs
- Main.cs
- SignatureDescription.cs
- OrderedDictionaryStateHelper.cs
- BitmapEffectState.cs
- WebPartEventArgs.cs
- WebPartEditorCancelVerb.cs
- StylusCollection.cs
- PeerName.cs
- StdRegProviderWrapper.cs
- DiscoveryReference.cs
- Literal.cs
- ClientSponsor.cs
- CommonGetThemePartSize.cs
- PtsHost.cs
- HashCodeCombiner.cs
- ObjectAnimationBase.cs
- CopyNamespacesAction.cs
- AnnouncementEndpoint.cs
- SchemaType.cs
- NeutralResourcesLanguageAttribute.cs
- RelatedPropertyManager.cs
- CqlErrorHelper.cs
- XmlComplianceUtil.cs
- RepeatButtonAutomationPeer.cs