Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataEntityDesign / Design / System / Data / EntityModel / TypeGeneratedEventArgs.cs / 1 / TypeGeneratedEventArgs.cs
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// @owner [....]
// @backupOwner [....]
//---------------------------------------------------------------------
using System;
using System.Data;
using System.CodeDom;
using System.Collections.Generic;
using System.Data.Metadata.Edm;
using System.Diagnostics;
namespace System.Data.Entity.Design
{
///
/// This class encapsulates the EventArgs dispatched as part of the event
/// raised when a type is generated.
///
public sealed class TypeGeneratedEventArgs : EventArgs
{
#region Private Data
private GlobalItem _typeSource;
private CodeTypeReference _baseType;
private List _additionalInterfaces = new List();
private List _additionalMembers = new List();
private List _additionalAttributes = new List();
#endregion
#region Constructors
///
/// Default constructor
///
public TypeGeneratedEventArgs()
{
}
///
/// Constructor
///
/// The source of the event
/// The base type of the type being generated
public TypeGeneratedEventArgs(GlobalItem typeSource, CodeTypeReference baseType)
{
this._typeSource = typeSource;
this._baseType = baseType;
}
#endregion
#region Properties
public GlobalItem TypeSource
{
get
{
return this._typeSource;
}
}
///
/// The type appropriate for the TypeSource
///
public CodeTypeReference BaseType
{
get
{
return this._baseType;
}
set
{
this._baseType = value;
}
}
///
/// Interfaces to be included in the new type's definition
///
public List AdditionalInterfaces
{
get
{
return this._additionalInterfaces;
}
}
///
/// Members to be included in the new type's definition
///
public List AdditionalMembers
{
get
{
return this._additionalMembers;
}
}
///
/// Attributes to be added to the property's CustomAttributes collection
///
public List AdditionalAttributes
{
get
{
return this._additionalAttributes;
}
}
#endregion
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// @owner [....]
// @backupOwner [....]
//---------------------------------------------------------------------
using System;
using System.Data;
using System.CodeDom;
using System.Collections.Generic;
using System.Data.Metadata.Edm;
using System.Diagnostics;
namespace System.Data.Entity.Design
{
///
/// This class encapsulates the EventArgs dispatched as part of the event
/// raised when a type is generated.
///
public sealed class TypeGeneratedEventArgs : EventArgs
{
#region Private Data
private GlobalItem _typeSource;
private CodeTypeReference _baseType;
private List _additionalInterfaces = new List();
private List _additionalMembers = new List();
private List _additionalAttributes = new List();
#endregion
#region Constructors
///
/// Default constructor
///
public TypeGeneratedEventArgs()
{
}
///
/// Constructor
///
/// The source of the event
/// The base type of the type being generated
public TypeGeneratedEventArgs(GlobalItem typeSource, CodeTypeReference baseType)
{
this._typeSource = typeSource;
this._baseType = baseType;
}
#endregion
#region Properties
public GlobalItem TypeSource
{
get
{
return this._typeSource;
}
}
///
/// The type appropriate for the TypeSource
///
public CodeTypeReference BaseType
{
get
{
return this._baseType;
}
set
{
this._baseType = value;
}
}
///
/// Interfaces to be included in the new type's definition
///
public List AdditionalInterfaces
{
get
{
return this._additionalInterfaces;
}
}
///
/// Members to be included in the new type's definition
///
public List AdditionalMembers
{
get
{
return this._additionalMembers;
}
}
///
/// Attributes to be added to the property's CustomAttributes collection
///
public List AdditionalAttributes
{
get
{
return this._additionalAttributes;
}
}
#endregion
}
}
// 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
- PenCursorManager.cs
- SearchExpression.cs
- UIElementPropertyUndoUnit.cs
- NameSpaceExtractor.cs
- OleDbFactory.cs
- TraceLevelStore.cs
- MiniCustomAttributeInfo.cs
- Decorator.cs
- SimpleHandlerBuildProvider.cs
- EventTrigger.cs
- RootProfilePropertySettingsCollection.cs
- ClientEventManager.cs
- TextServicesPropertyRanges.cs
- TextEndOfLine.cs
- SQLDouble.cs
- DataSourceExpression.cs
- Stopwatch.cs
- HtmlTableCellCollection.cs
- XmlSerializer.cs
- NativeCppClassAttribute.cs
- SaveFileDialog.cs
- ToolboxComponentsCreatingEventArgs.cs
- PeerNameRegistration.cs
- LocalizedNameDescriptionPair.cs
- BindingManagerDataErrorEventArgs.cs
- DbParameterCollection.cs
- PerformanceCounterPermissionAttribute.cs
- ProcessStartInfo.cs
- BordersPage.cs
- SecurityKeyUsage.cs
- SqlInternalConnection.cs
- TemplatePropertyEntry.cs
- ServiceEndpointElementCollection.cs
- SapiGrammar.cs
- ClientScriptManager.cs
- MarkupCompiler.cs
- EntityTypeEmitter.cs
- TemplatedMailWebEventProvider.cs
- QueryRewriter.cs
- WebPartDisplayModeCancelEventArgs.cs
- WeakRefEnumerator.cs
- ForwardPositionQuery.cs
- FormattedText.cs
- SqlConnectionHelper.cs
- HttpCachePolicyBase.cs
- WinInetCache.cs
- DataServiceHostFactory.cs
- Freezable.cs
- RouteItem.cs
- XmlSubtreeReader.cs
- MaterialGroup.cs
- TimerElapsedEvenArgs.cs
- SystemWebCachingSectionGroup.cs
- TemplateBindingExtensionConverter.cs
- CaseStatement.cs
- DataGridViewColumnHeaderCell.cs
- MessageTraceRecord.cs
- SoapReflector.cs
- NullableIntAverageAggregationOperator.cs
- BitConverter.cs
- FreezableOperations.cs
- DataService.cs
- XmlUrlResolver.cs
- ComponentGlyph.cs
- InstanceDataCollection.cs
- UnauthorizedAccessException.cs
- TextModifier.cs
- BooleanAnimationBase.cs
- ConfigurationLocationCollection.cs
- Nodes.cs
- EntityUtil.cs
- XmlSignificantWhitespace.cs
- SafeRightsManagementSessionHandle.cs
- XPathNavigatorKeyComparer.cs
- KeyInstance.cs
- TextRenderer.cs
- ComponentRenameEvent.cs
- XdrBuilder.cs
- WebPartEventArgs.cs
- XPathPatternBuilder.cs
- WebReferenceCollection.cs
- MenuItemStyleCollection.cs
- ConcurrentDictionary.cs
- CodeIdentifier.cs
- COSERVERINFO.cs
- ProviderConnectionPointCollection.cs
- Label.cs
- SchemaType.cs
- DbModificationCommandTree.cs
- ContextBase.cs
- versioninfo.cs
- xml.cs
- ToolStrip.cs
- IdnElement.cs
- AuthenticationConfig.cs
- ListBoxChrome.cs
- ObjectAnimationUsingKeyFrames.cs
- Environment.cs
- AddressingProperty.cs
- IdleTimeoutMonitor.cs