Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / ComplexPropertyEntry.cs / 1 / ComplexPropertyEntry.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.UI {
using System.Security.Permissions;
///
/// PropertyEntry for read/write and readonly complex properties
///
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public class ComplexPropertyEntry : BuilderPropertyEntry {
private bool _readOnly;
private bool _isCollectionItem;
internal ComplexPropertyEntry() {
}
internal ComplexPropertyEntry(bool isCollectionItem) {
_isCollectionItem = isCollectionItem;
}
///
/// Indicates whether the property is a collection property.
///
public bool IsCollectionItem {
get {
return _isCollectionItem;
}
}
///
///
public bool ReadOnly {
get {
return _readOnly;
}
set {
_readOnly = value;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.UI {
using System.Security.Permissions;
///
/// PropertyEntry for read/write and readonly complex properties
///
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public class ComplexPropertyEntry : BuilderPropertyEntry {
private bool _readOnly;
private bool _isCollectionItem;
internal ComplexPropertyEntry() {
}
internal ComplexPropertyEntry(bool isCollectionItem) {
_isCollectionItem = isCollectionItem;
}
///
/// Indicates whether the property is a collection property.
///
public bool IsCollectionItem {
get {
return _isCollectionItem;
}
}
///
///
public bool ReadOnly {
get {
return _readOnly;
}
set {
_readOnly = value;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- InProcStateClientManager.cs
- ToolStripContainerActionList.cs
- FlowLayout.cs
- SqlDataSourceStatusEventArgs.cs
- BasicExpressionVisitor.cs
- Environment.cs
- HitTestDrawingContextWalker.cs
- IconConverter.cs
- SystemIPGlobalProperties.cs
- Encoding.cs
- _ListenerAsyncResult.cs
- DefaultParameterValueAttribute.cs
- TabControlCancelEvent.cs
- BufferedStream.cs
- ControlCodeDomSerializer.cs
- SQLGuid.cs
- ZoomPercentageConverter.cs
- Message.cs
- DataBoundControlAdapter.cs
- DataGridColumnHeaderCollection.cs
- Base64Encoder.cs
- UniqueIdentifierService.cs
- UserValidatedEventArgs.cs
- SecurityManager.cs
- ProfilePropertySettingsCollection.cs
- assertwrapper.cs
- DateTimeStorage.cs
- GeometryGroup.cs
- ResourceDescriptionAttribute.cs
- QilChoice.cs
- SyndicationSerializer.cs
- XmlQualifiedNameTest.cs
- StringConverter.cs
- XmlQueryRuntime.cs
- NetworkInformationException.cs
- WorkflowMessageEventHandler.cs
- ConstraintManager.cs
- BitVector32.cs
- TextChangedEventArgs.cs
- BlurBitmapEffect.cs
- JsonClassDataContract.cs
- HttpModulesSection.cs
- TaskExtensions.cs
- ToolStripGripRenderEventArgs.cs
- XmlUTF8TextReader.cs
- AuthenticationModulesSection.cs
- ResourcesGenerator.cs
- glyphs.cs
- EncoderBestFitFallback.cs
- CodeNamespace.cs
- JoinQueryOperator.cs
- HwndProxyElementProvider.cs
- InternalConfigHost.cs
- DataSvcMapFileSerializer.cs
- UserMapPath.cs
- PKCS1MaskGenerationMethod.cs
- DataServiceExpressionVisitor.cs
- BulletChrome.cs
- _UncName.cs
- HttpBrowserCapabilitiesWrapper.cs
- StylusPoint.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- DataGridViewHeaderCell.cs
- ReadOnlyTernaryTree.cs
- EventLog.cs
- PtsCache.cs
- SafeRegistryKey.cs
- UIElementParaClient.cs
- ToolStripOverflowButton.cs
- TextChange.cs
- TriggerActionCollection.cs
- HScrollProperties.cs
- WorkflowRuntimeSection.cs
- TemplateInstanceAttribute.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- InternalPermissions.cs
- JavaScriptSerializer.cs
- CachedCompositeFamily.cs
- InputScopeNameConverter.cs
- Collection.cs
- HebrewNumber.cs
- HitTestFilterBehavior.cs
- WinEventHandler.cs
- GregorianCalendar.cs
- AppDomainFactory.cs
- DecimalAnimation.cs
- COAUTHIDENTITY.cs
- D3DImage.cs
- ChannelDispatcherCollection.cs
- ToolStripSeparator.cs
- WebBrowserEvent.cs
- MultipartContentParser.cs
- XmlRawWriter.cs
- UpdatePanelTrigger.cs
- IItemContainerGenerator.cs
- GridItemPattern.cs
- WmlPageAdapter.cs
- QueryStringParameter.cs
- ExpressionBuilderContext.cs