Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / xsp / System / Web / Extensions / ui / webcontrols / ListViewItem.cs / 1 / ListViewItem.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
using System;
using System.Collections;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Web;
using System.Web.UI;
namespace System.Web.UI.WebControls {
[AspNetHostingPermission(System.Security.Permissions.SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(System.Security.Permissions.SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[
ToolboxItem(false)
]
public class ListViewItem : Control, INamingContainer {
private ListViewItemType _itemType;
public ListViewItem(ListViewItemType itemType) {
_itemType = itemType;
}
public ListViewItemType ItemType {
get {
return _itemType;
}
}
[SuppressMessage("Microsoft.Security", "CA2109:ReviewVisibleEventHandlers", MessageId = "1#")]
protected override bool OnBubbleEvent(object source, EventArgs e) {
if (e is CommandEventArgs) {
ListViewCommandEventArgs args = new ListViewCommandEventArgs(this, source, (CommandEventArgs)e);
RaiseBubbleEvent(this, args);
return true;
}
return false;
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
using System;
using System.Collections;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Web;
using System.Web.UI;
namespace System.Web.UI.WebControls {
[AspNetHostingPermission(System.Security.Permissions.SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(System.Security.Permissions.SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[
ToolboxItem(false)
]
public class ListViewItem : Control, INamingContainer {
private ListViewItemType _itemType;
public ListViewItem(ListViewItemType itemType) {
_itemType = itemType;
}
public ListViewItemType ItemType {
get {
return _itemType;
}
}
[SuppressMessage("Microsoft.Security", "CA2109:ReviewVisibleEventHandlers", MessageId = "1#")]
protected override bool OnBubbleEvent(object source, EventArgs e) {
if (e is CommandEventArgs) {
ListViewCommandEventArgs args = new ListViewCommandEventArgs(this, source, (CommandEventArgs)e);
RaiseBubbleEvent(this, args);
return true;
}
return false;
}
}
}
// 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
- SimpleWorkerRequest.cs
- Exceptions.cs
- WebPartZoneDesigner.cs
- XNodeNavigator.cs
- TypeGenericEnumerableViewSchema.cs
- KeyValuePair.cs
- ViewManager.cs
- recordstatescratchpad.cs
- QueryableDataSource.cs
- DataControlFieldHeaderCell.cs
- ConfigurationLockCollection.cs
- StorageInfo.cs
- DbException.cs
- XPathBinder.cs
- SupportingTokenSecurityTokenResolver.cs
- XPathMultyIterator.cs
- ReceiveActivityDesignerTheme.cs
- StringUtil.cs
- TableHeaderCell.cs
- DBSqlParserColumn.cs
- WorkflowOperationContext.cs
- WebPartManagerInternals.cs
- KeyBinding.cs
- QuaternionIndependentAnimationStorage.cs
- Figure.cs
- LinqDataView.cs
- ClientFormsAuthenticationMembershipProvider.cs
- EntityDataSourceSelectedEventArgs.cs
- HwndSource.cs
- SeekStoryboard.cs
- Bookmark.cs
- XPathSingletonIterator.cs
- XmlNamedNodeMap.cs
- RowToFieldTransformer.cs
- OperationSelectorBehavior.cs
- DispatcherProcessingDisabled.cs
- LookupNode.cs
- CheckBoxPopupAdapter.cs
- SecurityUtils.cs
- XmlQueryType.cs
- PersistenceTask.cs
- UriTemplateHelpers.cs
- InheritanceContextHelper.cs
- ProcessModelInfo.cs
- SynchronizationLockException.cs
- httpstaticobjectscollection.cs
- TextWriter.cs
- KnownTypesProvider.cs
- ToolStripSeparatorRenderEventArgs.cs
- FixedHyperLink.cs
- CopyNamespacesAction.cs
- RadioButtonList.cs
- LocalTransaction.cs
- HtmlInputSubmit.cs
- ExpressionBuilderContext.cs
- TouchPoint.cs
- TextBox.cs
- EncoderFallback.cs
- CellQuery.cs
- RbTree.cs
- CustomWebEventKey.cs
- HttpCacheVary.cs
- HtmlTable.cs
- LinqDataSourceSelectEventArgs.cs
- DataSetSchema.cs
- formatter.cs
- SmtpFailedRecipientException.cs
- BoundField.cs
- VisualStyleRenderer.cs
- ScriptingJsonSerializationSection.cs
- PropertyContainer.cs
- OdbcEnvironment.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- WebPartAddingEventArgs.cs
- HierarchicalDataTemplate.cs
- WorkflowPersistenceContext.cs
- OdbcConnection.cs
- Imaging.cs
- StringKeyFrameCollection.cs
- X509Chain.cs
- SystemFonts.cs
- JsonEnumDataContract.cs
- Attributes.cs
- CheckBox.cs
- Vector3DCollectionValueSerializer.cs
- ActivityDesigner.cs
- MenuEventArgs.cs
- Expander.cs
- SqlNodeAnnotations.cs
- ThrowHelper.cs
- WriteableBitmap.cs
- SqlConnectionPoolGroupProviderInfo.cs
- TraceInternal.cs
- RuleInfoComparer.cs
- DataGridCellsPresenter.cs
- MetadataArtifactLoaderComposite.cs
- KnownBoxes.cs
- IpcChannelHelper.cs
- MessageDispatch.cs
- MonthCalendar.cs