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 / ValidationPropertyAttribute.cs / 1 / ValidationPropertyAttribute.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace System.Web.UI {
using System.Runtime.InteropServices;
using System.ComponentModel;
using System.Security.Permissions;
///
/// Identifies the validation property for a component.
///
[AttributeUsage(AttributeTargets.Class)]
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public sealed class ValidationPropertyAttribute : Attribute {
///
/// This is the validation event name.
///
private readonly string name;
///
/// Initializes a new instance of the class.
///
public ValidationPropertyAttribute(string name) {
this.name = name;
}
///
/// Indicates the name the specified validation attribute. This property is
/// read-only.
///
public string Name {
get {
return name;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace System.Web.UI {
using System.Runtime.InteropServices;
using System.ComponentModel;
using System.Security.Permissions;
///
/// Identifies the validation property for a component.
///
[AttributeUsage(AttributeTargets.Class)]
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public sealed class ValidationPropertyAttribute : Attribute {
///
/// This is the validation event name.
///
private readonly string name;
///
/// Initializes a new instance of the class.
///
public ValidationPropertyAttribute(string name) {
this.name = name;
}
///
/// Indicates the name the specified validation attribute. This property is
/// read-only.
///
public string Name {
get {
return name;
}
}
}
}
// 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
- BindingCollection.cs
- TextBox.cs
- LinkLabelLinkClickedEvent.cs
- DataGridViewRowHeaderCell.cs
- DetailsViewActionList.cs
- HashAlgorithm.cs
- PinnedBufferMemoryStream.cs
- TextTreeTextBlock.cs
- ADMembershipProvider.cs
- TextEffectResolver.cs
- PageSetupDialog.cs
- LoadRetryHandler.cs
- AttributedMetaModel.cs
- SqlConnectionStringBuilder.cs
- RangeBaseAutomationPeer.cs
- ReferenceConverter.cs
- WorkflowMarkupSerializationException.cs
- ReadOnlyCollection.cs
- Journaling.cs
- FixedTextContainer.cs
- VerticalAlignConverter.cs
- TreeViewHitTestInfo.cs
- RequestStatusBarUpdateEventArgs.cs
- XmlSchemaAnnotated.cs
- IconConverter.cs
- HttpCachePolicyWrapper.cs
- PropertyStore.cs
- SiteMapDataSourceView.cs
- Listen.cs
- HttpProxyTransportBindingElement.cs
- NullRuntimeConfig.cs
- XmlValueConverter.cs
- _LocalDataStoreMgr.cs
- OleDbError.cs
- TypeExtensionSerializer.cs
- GridViewRowPresenter.cs
- MULTI_QI.cs
- Membership.cs
- IconConverter.cs
- Transform3DGroup.cs
- PagerSettings.cs
- Model3DGroup.cs
- CompilerInfo.cs
- DataQuery.cs
- ObjectListDesigner.cs
- GroupItemAutomationPeer.cs
- Constant.cs
- InheritablePropertyChangeInfo.cs
- ColorConverter.cs
- LockRecursionException.cs
- ExceptionUtil.cs
- InvokeMethodActivityDesigner.cs
- DebugHandleTracker.cs
- QualifierSet.cs
- EventBindingService.cs
- CodeAccessSecurityEngine.cs
- TreeNodeClickEventArgs.cs
- DataListCommandEventArgs.cs
- Stacktrace.cs
- MachineSettingsSection.cs
- ButtonDesigner.cs
- TypeSystemHelpers.cs
- SqlCacheDependencyDatabase.cs
- newinstructionaction.cs
- InvalidFilterCriteriaException.cs
- DummyDataSource.cs
- FunctionDescription.cs
- Certificate.cs
- RenderTargetBitmap.cs
- Latin1Encoding.cs
- Decoder.cs
- CodeParameterDeclarationExpression.cs
- httpapplicationstate.cs
- SemanticResolver.cs
- SecUtil.cs
- Win32PrintDialog.cs
- BasicSecurityProfileVersion.cs
- ExpressionVisitor.cs
- login.cs
- ImageFormat.cs
- cookie.cs
- RelationshipFixer.cs
- ListView.cs
- QilVisitor.cs
- Misc.cs
- MdImport.cs
- BaseAddressElement.cs
- SerializationObjectManager.cs
- Int64KeyFrameCollection.cs
- EncodedStreamFactory.cs
- EncryptedType.cs
- TemplateParser.cs
- PrimaryKeyTypeConverter.cs
- ProgressBarAutomationPeer.cs
- PointF.cs
- Variant.cs
- sitestring.cs
- RegexInterpreter.cs
- TextMetrics.cs
- _NegotiateClient.cs