Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Objects / ObjectMaterializedEventArgs.cs / 1305376 / ObjectMaterializedEventArgs.cs
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// @owner [....]
// @backupOwner [....]
//---------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace System.Data.Objects
{
///
/// EventArgs for the ObjectMaterialized event.
///
public class ObjectMaterializedEventArgs : EventArgs
{
///
/// The object that was materialized.
///
private readonly object _entity;
///
/// Constructs new arguments for the ObjectMaterialized event.
///
/// The object that has been materialized.
internal ObjectMaterializedEventArgs(object entity)
{
_entity = entity;
}
///
/// The object that was materialized.
///
public object Entity
{
get { return _entity; }
}
}
///
/// Delegate for the ObjectMaterialized event.
///
/// The ObjectContext responsable for materializing the object.
/// EventArgs containing a reference to the materialized object.
public delegate void ObjectMaterializedEventHandler(object sender, ObjectMaterializedEventArgs e);
}
// 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
- AmbiguousMatchException.cs
- BulletChrome.cs
- ParameterElementCollection.cs
- WorkflowApplicationCompletedException.cs
- GenericAuthenticationEventArgs.cs
- XmlChildEnumerator.cs
- XNameTypeConverter.cs
- DesignerMetadata.cs
- PagedControl.cs
- VectorCollectionValueSerializer.cs
- safex509handles.cs
- BoundField.cs
- Model3DCollection.cs
- ServiceOperationListItemList.cs
- ADRole.cs
- SqlUserDefinedTypeAttribute.cs
- MergeFilterQuery.cs
- SerializationInfo.cs
- SqlAliaser.cs
- EtwTrace.cs
- OrderByLifter.cs
- MeasurementDCInfo.cs
- CompilationRelaxations.cs
- TextDecorationCollection.cs
- IntranetCredentialPolicy.cs
- NullRuntimeConfig.cs
- XPathScanner.cs
- Schema.cs
- BufferedStream.cs
- DefaultBinder.cs
- HatchBrush.cs
- UIPropertyMetadata.cs
- BitmapEffectDrawing.cs
- ActivationServices.cs
- ConfigurationValidatorAttribute.cs
- ResourceAttributes.cs
- DataGrid.cs
- Emitter.cs
- DbConnectionPool.cs
- PostBackTrigger.cs
- MimeTypePropertyAttribute.cs
- recordstate.cs
- DataSourceHelper.cs
- FixedSOMElement.cs
- ProfileModule.cs
- GeneralTransformGroup.cs
- ApplyTemplatesAction.cs
- GenericUriParser.cs
- StructuredType.cs
- Token.cs
- PerspectiveCamera.cs
- TextSelectionHelper.cs
- Color.cs
- login.cs
- MetadataItemEmitter.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- PersonalizationState.cs
- CodeCommentStatementCollection.cs
- NavigationProgressEventArgs.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- assertwrapper.cs
- PriorityQueue.cs
- dataobject.cs
- DataTableReaderListener.cs
- TextComposition.cs
- ActivityDelegate.cs
- DbConnectionPoolIdentity.cs
- Point3DCollectionValueSerializer.cs
- WorkItem.cs
- MetaModel.cs
- ThousandthOfEmRealPoints.cs
- XmlFormatExtensionAttribute.cs
- WorkflowMarkupSerializerMapping.cs
- Cursors.cs
- TypeGeneratedEventArgs.cs
- PointConverter.cs
- DoubleLinkList.cs
- NonVisualControlAttribute.cs
- XmlSchemaSimpleContentRestriction.cs
- DaylightTime.cs
- DurableInstance.cs
- Maps.cs
- SqlDataSourceConfigureSelectPanel.cs
- CancellationHandlerDesigner.cs
- ResourceContainer.cs
- WizardPanelChangingEventArgs.cs
- SqlDataSourceQueryConverter.cs
- Point4D.cs
- NetSectionGroup.cs
- ApplicationFileCodeDomTreeGenerator.cs
- DbgCompiler.cs
- ADConnectionHelper.cs
- MonikerBuilder.cs
- DBDataPermission.cs
- ISAPIRuntime.cs
- ManipulationStartingEventArgs.cs
- XmlTextReader.cs
- IndexedEnumerable.cs
- RenderCapability.cs
- DrawingGroupDrawingContext.cs