Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / CodeCatchClause.cs / 1305376 / CodeCatchClause.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 catch exception block.
///
[
ClassInterface(ClassInterfaceType.AutoDispatch),
ComVisible(true),
Serializable,
]
public class CodeCatchClause {
private CodeStatementCollection statements;
private CodeTypeReference catchExceptionType;
private string localName;
///
///
/// Initializes an instance of .
///
///
public CodeCatchClause() {
}
///
/// [To be supplied.]
///
public CodeCatchClause(string localName) {
this.localName = localName;
}
///
/// [To be supplied.]
///
public CodeCatchClause(string localName, CodeTypeReference catchExceptionType) {
this.localName = localName;
this.catchExceptionType = catchExceptionType;
}
///
/// [To be supplied.]
///
public CodeCatchClause(string localName, CodeTypeReference catchExceptionType, params CodeStatement[] statements) {
this.localName = localName;
this.catchExceptionType = catchExceptionType;
Statements.AddRange(statements);
}
///
/// [To be supplied.]
///
public string LocalName {
get {
return (localName == null) ? string.Empty: localName;
}
set {
localName = value;
}
}
///
/// [To be supplied.]
///
public CodeTypeReference CatchExceptionType {
get {
if (catchExceptionType == null) {
catchExceptionType = new CodeTypeReference(typeof(System.Exception));
}
return catchExceptionType;
}
set {
catchExceptionType = value;
}
}
///
///
/// Gets or sets the statements within the clause.
///
///
public CodeStatementCollection Statements {
get {
if (statements == null) {
statements = new CodeStatementCollection();
}
return statements;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
//
// [....]
// 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 catch exception block.
///
[
ClassInterface(ClassInterfaceType.AutoDispatch),
ComVisible(true),
Serializable,
]
public class CodeCatchClause {
private CodeStatementCollection statements;
private CodeTypeReference catchExceptionType;
private string localName;
///
///
/// Initializes an instance of .
///
///
public CodeCatchClause() {
}
///
/// [To be supplied.]
///
public CodeCatchClause(string localName) {
this.localName = localName;
}
///
/// [To be supplied.]
///
public CodeCatchClause(string localName, CodeTypeReference catchExceptionType) {
this.localName = localName;
this.catchExceptionType = catchExceptionType;
}
///
/// [To be supplied.]
///
public CodeCatchClause(string localName, CodeTypeReference catchExceptionType, params CodeStatement[] statements) {
this.localName = localName;
this.catchExceptionType = catchExceptionType;
Statements.AddRange(statements);
}
///
/// [To be supplied.]
///
public string LocalName {
get {
return (localName == null) ? string.Empty: localName;
}
set {
localName = value;
}
}
///
/// [To be supplied.]
///
public CodeTypeReference CatchExceptionType {
get {
if (catchExceptionType == null) {
catchExceptionType = new CodeTypeReference(typeof(System.Exception));
}
return catchExceptionType;
}
set {
catchExceptionType = value;
}
}
///
///
/// Gets or sets the statements within the clause.
///
///
public CodeStatementCollection Statements {
get {
if (statements == null) {
statements = new CodeStatementCollection();
}
return statements;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Literal.cs
- StructuredType.cs
- ObjRef.cs
- AssemblySettingAttributes.cs
- DesignTableCollection.cs
- SerializationHelper.cs
- OLEDB_Enum.cs
- PtsHost.cs
- InvokeBinder.cs
- TextDecorationCollection.cs
- ConsoleKeyInfo.cs
- X509WindowsSecurityToken.cs
- ObjectDataSourceChooseMethodsPanel.cs
- SafeProcessHandle.cs
- ISAPIWorkerRequest.cs
- StringTraceRecord.cs
- ConnectionsZoneDesigner.cs
- AnnotationResource.cs
- Attributes.cs
- RoleManagerEventArgs.cs
- ExpressionBuilder.cs
- XmlSerializationReader.cs
- OleDbEnumerator.cs
- SourceSwitch.cs
- lengthconverter.cs
- ProbeMatchesMessageCD1.cs
- GlyphRunDrawing.cs
- WebServiceMethodData.cs
- CompensatableSequenceActivity.cs
- ConfigXmlDocument.cs
- PagePropertiesChangingEventArgs.cs
- FaultBookmark.cs
- PersonalizablePropertyEntry.cs
- ExtensionWindowHeader.cs
- xmlfixedPageInfo.cs
- SafeHandles.cs
- ExitEventArgs.cs
- SqlDataReaderSmi.cs
- ping.cs
- ParserHooks.cs
- UrlMapping.cs
- NominalTypeEliminator.cs
- MsmqHostedTransportConfiguration.cs
- DiagnosticSection.cs
- InternalPermissions.cs
- DurableInstanceProvider.cs
- InternalCache.cs
- LayeredChannelFactory.cs
- EntityDataSourceDesigner.cs
- TickBar.cs
- WebServiceEnumData.cs
- SetUserPreferenceRequest.cs
- ExpressionEvaluator.cs
- MsmqReceiveHelper.cs
- RemotingAttributes.cs
- TreeView.cs
- IdentityValidationException.cs
- ToolStripPanelCell.cs
- RoleBoolean.cs
- KernelTypeValidation.cs
- InputDevice.cs
- EntityDataSourceContextCreatingEventArgs.cs
- ConnectionStringSettingsCollection.cs
- LineBreakRecord.cs
- LogExtent.cs
- Point3DCollection.cs
- Vector3DCollectionConverter.cs
- PenLineJoinValidation.cs
- CodeGeneratorOptions.cs
- CheckBox.cs
- DummyDataSource.cs
- X509LogoTypeExtension.cs
- RuntimeIdentifierPropertyAttribute.cs
- _NtlmClient.cs
- IndexingContentUnit.cs
- EventListener.cs
- ConfigUtil.cs
- ConfigXmlComment.cs
- CodePropertyReferenceExpression.cs
- TextRunCacheImp.cs
- ProxyWebPartConnectionCollection.cs
- SafeRightsManagementQueryHandle.cs
- ValidationHelper.cs
- ResourceDictionaryCollection.cs
- CommaDelimitedStringAttributeCollectionConverter.cs
- DataServiceQueryOfT.cs
- IconConverter.cs
- CompilationLock.cs
- HwndSourceKeyboardInputSite.cs
- MessageEnumerator.cs
- ResourcePermissionBaseEntry.cs
- MethodRental.cs
- translator.cs
- ResourceReader.cs
- LinqExpressionNormalizer.cs
- MemoryMappedFile.cs
- CollectionTraceRecord.cs
- Stack.cs
- UriTemplateQueryValue.cs
- FilePresentation.cs