Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataWeb / 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.Services.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
///
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1002", Justification = "Same as System.Data.Entity.Design")]
public List AdditionalInterfaces
{
get
{
return this._additionalInterfaces;
}
}
///
/// Members to be included in the new type's definition
///
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1002", Justification = "Same as System.Data.Entity.Design")]
public List AdditionalMembers
{
get
{
return this._additionalMembers;
}
}
///
/// Attributes to be added to the property's CustomAttributes collection
///
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1002", Justification = "Same as System.Data.Entity.Design")]
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.Services.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
///
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1002", Justification = "Same as System.Data.Entity.Design")]
public List AdditionalInterfaces
{
get
{
return this._additionalInterfaces;
}
}
///
/// Members to be included in the new type's definition
///
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1002", Justification = "Same as System.Data.Entity.Design")]
public List AdditionalMembers
{
get
{
return this._additionalMembers;
}
}
///
/// Attributes to be added to the property's CustomAttributes collection
///
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1002", Justification = "Same as System.Data.Entity.Design")]
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
- PartialCachingControl.cs
- Semaphore.cs
- FeatureSupport.cs
- OracleSqlParser.cs
- HtmlElementCollection.cs
- CodeConditionStatement.cs
- SelectionProviderWrapper.cs
- HwndSourceKeyboardInputSite.cs
- ListControl.cs
- ReceiveContext.cs
- CorrelationManager.cs
- AssemblyNameProxy.cs
- TypeUtil.cs
- DeliveryRequirementsAttribute.cs
- FixedSOMTextRun.cs
- PrivilegedConfigurationManager.cs
- WindowsIPAddress.cs
- PriorityRange.cs
- HTTPNotFoundHandler.cs
- EdmComplexTypeAttribute.cs
- XmlSchemaSimpleContentExtension.cs
- StringArrayEditor.cs
- DrawingCollection.cs
- WindowsPen.cs
- MetabaseServerConfig.cs
- UiaCoreTypesApi.cs
- Constraint.cs
- WebServiceFault.cs
- MatrixTransform.cs
- TaskFileService.cs
- QueryGenerator.cs
- TransformationRules.cs
- XmlSerializerAssemblyAttribute.cs
- DBSchemaTable.cs
- GlobalAllocSafeHandle.cs
- MachineKeyConverter.cs
- MetadataException.cs
- COM2PictureConverter.cs
- StringInfo.cs
- SettingsSection.cs
- InputProviderSite.cs
- LabelAutomationPeer.cs
- HttpCookieCollection.cs
- XamlTreeBuilder.cs
- OrderedDictionary.cs
- TailCallAnalyzer.cs
- externdll.cs
- SparseMemoryStream.cs
- LazyTextWriterCreator.cs
- VisualStyleElement.cs
- XmlBinaryReaderSession.cs
- Graph.cs
- XmlSchemaSimpleContent.cs
- DbDeleteCommandTree.cs
- PartialClassGenerationTaskInternal.cs
- XmlHelper.cs
- HttpPostedFile.cs
- XsdBuildProvider.cs
- ToolStripContentPanelRenderEventArgs.cs
- CollectionViewProxy.cs
- FlowDocumentView.cs
- KeyedCollection.cs
- RegexWorker.cs
- RestHandler.cs
- MimePart.cs
- Matrix3D.cs
- OpenFileDialog.cs
- SmtpMail.cs
- SoapElementAttribute.cs
- DesignerResources.cs
- PixelFormats.cs
- DesignerExtenders.cs
- Animatable.cs
- X509SecurityTokenAuthenticator.cs
- ColorAnimation.cs
- SerializableAttribute.cs
- FormClosedEvent.cs
- Mappings.cs
- HttpApplicationStateWrapper.cs
- ExtentKey.cs
- FileReservationCollection.cs
- WebServiceFault.cs
- Int32RectValueSerializer.cs
- ContainerUIElement3D.cs
- XmlSerializer.cs
- SimpleFieldTemplateUserControl.cs
- ParserHooks.cs
- AuthStoreRoleProvider.cs
- CopyCodeAction.cs
- CommunicationObject.cs
- QueryCacheEntry.cs
- CopyCodeAction.cs
- FormViewDeleteEventArgs.cs
- PublishLicense.cs
- AsnEncodedData.cs
- ExtendedProtectionPolicy.cs
- LinearQuaternionKeyFrame.cs
- AppSecurityManager.cs
- XmlConvert.cs
- VisualTarget.cs