Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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; } } } }/// Gets or sets /// the finally statements to use. /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- NGCSerializer.cs
- FilterEventArgs.cs
- DoubleCollection.cs
- FixedSOMGroup.cs
- RequestSecurityTokenResponse.cs
- InvokeMethod.cs
- ProvidePropertyAttribute.cs
- LoginViewDesigner.cs
- OdbcCommand.cs
- SQLBytes.cs
- DomNameTable.cs
- CodeGotoStatement.cs
- TextEditorCharacters.cs
- GCHandleCookieTable.cs
- validationstate.cs
- BooleanAnimationBase.cs
- ListBindableAttribute.cs
- OutputScope.cs
- FormsAuthenticationTicket.cs
- IpcManager.cs
- ContextQuery.cs
- DictionaryBase.cs
- ResourcePermissionBase.cs
- SmiRecordBuffer.cs
- ReadOnlyCollectionBase.cs
- CompilerErrorCollection.cs
- XmlQualifiedName.cs
- SmiConnection.cs
- DCSafeHandle.cs
- EntitySqlException.cs
- MailAddressCollection.cs
- UpdatePanelControlTrigger.cs
- InternalTransaction.cs
- UnionExpr.cs
- DatasetMethodGenerator.cs
- RuleSetBrowserDialog.cs
- TabItemAutomationPeer.cs
- PartitionerQueryOperator.cs
- ScaleTransform3D.cs
- SqlDelegatedTransaction.cs
- DataReceivedEventArgs.cs
- ItemMap.cs
- XmlName.cs
- QuadraticEase.cs
- XmlArrayAttribute.cs
- ListBindingConverter.cs
- Matrix.cs
- SerializationHelper.cs
- InvokeGenerator.cs
- RawStylusActions.cs
- HyperLinkDesigner.cs
- ObjectItemLoadingSessionData.cs
- SamlAuthenticationStatement.cs
- PrintingPermissionAttribute.cs
- DeviceSpecificDialogCachedState.cs
- AuthorizationSection.cs
- AttachedProperty.cs
- SqlCharStream.cs
- ChtmlTextWriter.cs
- DelegatingConfigHost.cs
- ScriptComponentDescriptor.cs
- ThrowHelper.cs
- DataServiceExpressionVisitor.cs
- FontFamilyValueSerializer.cs
- TableItemStyle.cs
- Repeater.cs
- ListViewUpdateEventArgs.cs
- PageParserFilter.cs
- ObjectViewQueryResultData.cs
- DataRowCollection.cs
- VectorCollection.cs
- PageThemeBuildProvider.cs
- DiagnosticsConfiguration.cs
- TraceHandlerErrorFormatter.cs
- FormViewCommandEventArgs.cs
- SrgsItemList.cs
- DataBoundControlAdapter.cs
- DeadCharTextComposition.cs
- RowToFieldTransformer.cs
- StrongName.cs
- XmlMembersMapping.cs
- AxParameterData.cs
- CommandPlan.cs
- WsatProxy.cs
- MonthCalendar.cs
- PersistChildrenAttribute.cs
- QueryConverter.cs
- QueueSurrogate.cs
- UnauthorizedWebPart.cs
- PagedDataSource.cs
- ChannelRequirements.cs
- FilteredReadOnlyMetadataCollection.cs
- DataGridTextBox.cs
- InfoCardSymmetricCrypto.cs
- ScriptReference.cs
- XmlText.cs
- SkipQueryOptionExpression.cs
- SystemSounds.cs
- ImageMetadata.cs
- HtmlUtf8RawTextWriter.cs