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
- MemberRelationshipService.cs
- TextSchema.cs
- RtfNavigator.cs
- PolyBezierSegment.cs
- CollectionContainer.cs
- NavigationExpr.cs
- XmlSchemaAppInfo.cs
- XmlBinaryWriter.cs
- MetadataArtifactLoaderFile.cs
- TerminateSequence.cs
- WebPartAuthorizationEventArgs.cs
- WebServiceTypeData.cs
- CustomAttributeFormatException.cs
- ScalarType.cs
- ADMembershipUser.cs
- NCryptNative.cs
- StatusBarDrawItemEvent.cs
- ProtectedConfigurationProviderCollection.cs
- SafeMarshalContext.cs
- Utils.cs
- CheckPair.cs
- SQlBooleanStorage.cs
- DataRowView.cs
- RadioButtonAutomationPeer.cs
- StrongNameUtility.cs
- EventInfo.cs
- PerformanceCounterManager.cs
- WebConfigurationFileMap.cs
- SQLString.cs
- Stopwatch.cs
- ConstraintManager.cs
- Subtree.cs
- ObjectStateEntryDbDataRecord.cs
- ClientData.cs
- ExclusiveTcpTransportManager.cs
- PtsCache.cs
- CatalogPartDesigner.cs
- ServiceDescriptionSerializer.cs
- OutputChannelBinder.cs
- SystemColorTracker.cs
- OdbcConnectionString.cs
- DataGridViewRow.cs
- InvalidCastException.cs
- TCEAdapterGenerator.cs
- FlowDocumentReaderAutomationPeer.cs
- BypassElement.cs
- PenThread.cs
- CqlParser.cs
- PolyQuadraticBezierSegment.cs
- BaseAddressPrefixFilterElementCollection.cs
- XmlSchemaGroupRef.cs
- IncomingWebRequestContext.cs
- CommandCollectionEditor.cs
- GenericXmlSecurityToken.cs
- Helpers.cs
- XPathConvert.cs
- MobileListItemCollection.cs
- ExcCanonicalXml.cs
- BaseDataBoundControl.cs
- Misc.cs
- Aggregates.cs
- Light.cs
- IsolationInterop.cs
- AsymmetricAlgorithm.cs
- VisualStateGroup.cs
- SQLSingle.cs
- XmlStreamNodeWriter.cs
- PriorityChain.cs
- SQLMembershipProvider.cs
- ColorMatrix.cs
- QuaternionRotation3D.cs
- XslAstAnalyzer.cs
- AppDomainUnloadedException.cs
- StrokeNodeData.cs
- BufferAllocator.cs
- GatewayDefinition.cs
- ReadOnlyAttribute.cs
- CryptoKeySecurity.cs
- SoapRpcMethodAttribute.cs
- DrawingState.cs
- TemplatePagerField.cs
- DelegatedStream.cs
- TreeNodeBindingDepthConverter.cs
- IdentityNotMappedException.cs
- GPRECTF.cs
- ListBindingConverter.cs
- TypeLoadException.cs
- MappingItemCollection.cs
- DriveInfo.cs
- CqlQuery.cs
- ConfigXmlSignificantWhitespace.cs
- InputReportEventArgs.cs
- TextBlock.cs
- GPPOINT.cs
- OletxVolatileEnlistment.cs
- COM2Properties.cs
- SmtpMail.cs
- OracleCommandBuilder.cs
- BinHexEncoder.cs
- TextParaLineResult.cs