Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / xsp / System / Web / UI / WebControls / ObjectDataSourceEventArgs.cs / 1 / ObjectDataSourceEventArgs.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.UI.WebControls {
using System;
using System.Collections;
using System.Security.Permissions;
///
/// Represents data that is passed into an ObjectDataSourceObjectEventHandler delegate.
///
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public class ObjectDataSourceEventArgs : EventArgs {
private object _objectInstance;
///
/// Creates a new instance of ObjectDataSourceEventArgs.
///
public ObjectDataSourceEventArgs(object objectInstance) : base() {
_objectInstance = objectInstance;
}
///
/// The instance of the object created by the ObjectDataSource. Set this
/// property if you need to create the object using a non-default
/// constructor.
///
public object ObjectInstance {
get {
return _objectInstance;
}
set {
_objectInstance = value;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.UI.WebControls {
using System;
using System.Collections;
using System.Security.Permissions;
///
/// Represents data that is passed into an ObjectDataSourceObjectEventHandler delegate.
///
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public class ObjectDataSourceEventArgs : EventArgs {
private object _objectInstance;
///
/// Creates a new instance of ObjectDataSourceEventArgs.
///
public ObjectDataSourceEventArgs(object objectInstance) : base() {
_objectInstance = objectInstance;
}
///
/// The instance of the object created by the ObjectDataSource. Set this
/// property if you need to create the object using a non-default
/// constructor.
///
public object ObjectInstance {
get {
return _objectInstance;
}
set {
_objectInstance = value;
}
}
}
}
// 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
- BindingWorker.cs
- AssemblyAssociatedContentFileAttribute.cs
- Line.cs
- ParagraphResult.cs
- ControlPropertyNameConverter.cs
- DateTimeUtil.cs
- _ConnectStream.cs
- TaskFormBase.cs
- ConfigurationSectionCollection.cs
- Input.cs
- BindingListCollectionView.cs
- MenuTracker.cs
- SQLUtility.cs
- QuaternionAnimationBase.cs
- StaticTextPointer.cs
- ObjectListSelectEventArgs.cs
- SafeFileMappingHandle.cs
- DiscoveryOperationContextExtension.cs
- UnionCodeGroup.cs
- WebPartPersonalization.cs
- XmlSerializerNamespaces.cs
- UriWriter.cs
- TypeContext.cs
- SqlMethods.cs
- ChtmlTextWriter.cs
- DataView.cs
- ScrollEventArgs.cs
- IRCollection.cs
- XmlChoiceIdentifierAttribute.cs
- RefreshEventArgs.cs
- AccessDataSource.cs
- AnnotationDocumentPaginator.cs
- DiscreteKeyFrames.cs
- XPathNodeIterator.cs
- ClientRolePrincipal.cs
- HashMembershipCondition.cs
- SHA384.cs
- WebPartHeaderCloseVerb.cs
- XmlMtomWriter.cs
- StrokeFIndices.cs
- UIElement.cs
- UriParserTemplates.cs
- ListViewItemSelectionChangedEvent.cs
- GifBitmapDecoder.cs
- Label.cs
- PropertyMapper.cs
- SQLByteStorage.cs
- HtmlValidationSummaryAdapter.cs
- SettingsContext.cs
- QilScopedVisitor.cs
- DataGridViewColumnTypeEditor.cs
- ParseElementCollection.cs
- SpnegoTokenAuthenticator.cs
- TextRange.cs
- SkipQueryOptionExpression.cs
- Win32.cs
- TransformDescriptor.cs
- InstanceStore.cs
- WorkflowMarkupSerializerMapping.cs
- SerializationException.cs
- NumberSubstitution.cs
- InternalConfigSettingsFactory.cs
- SeekStoryboard.cs
- ServiceDocument.cs
- AssociationTypeEmitter.cs
- DesignerForm.cs
- RegistrationServices.cs
- RefreshPropertiesAttribute.cs
- StylusPointPropertyInfo.cs
- SerialPort.cs
- DataGridViewSelectedRowCollection.cs
- SqlRecordBuffer.cs
- InputEventArgs.cs
- ObjectListItem.cs
- CapabilitiesPattern.cs
- SafeArrayRankMismatchException.cs
- ReceiveActivityValidator.cs
- ReliableMessagingVersionConverter.cs
- ReadOnlyAttribute.cs
- ControlBindingsCollection.cs
- EventSource.cs
- CompilerScope.cs
- PlainXmlWriter.cs
- TableRow.cs
- RowToFieldTransformer.cs
- PageAdapter.cs
- Msec.cs
- List.cs
- CodeArgumentReferenceExpression.cs
- ReverseInheritProperty.cs
- FontCacheUtil.cs
- PenThreadPool.cs
- DeviceSpecificDesigner.cs
- StreamGeometryContext.cs
- IisTraceListener.cs
- CorrelationService.cs
- RegexFCD.cs
- FeatureSupport.cs
- ReverseInheritProperty.cs
- XmlQualifiedNameTest.cs