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
- PageThemeParser.cs
- SchemaTableOptionalColumn.cs
- SafeNativeMethods.cs
- itemelement.cs
- XmlTypeMapping.cs
- ArraySet.cs
- DeploymentSectionCache.cs
- PerformanceCounterPermissionEntryCollection.cs
- StylusTouchDevice.cs
- SinglePageViewer.cs
- ColumnClickEvent.cs
- Listbox.cs
- CompilerHelpers.cs
- FileBasedResourceGroveler.cs
- SharedStatics.cs
- SqlConnectionFactory.cs
- UndirectedGraph.cs
- odbcmetadatacollectionnames.cs
- CanonicalizationDriver.cs
- UnconditionalPolicy.cs
- StoryFragments.cs
- TdsParserSessionPool.cs
- SqlBuilder.cs
- Single.cs
- SoapClientProtocol.cs
- QuaternionAnimationUsingKeyFrames.cs
- BridgeDataRecord.cs
- XsdCachingReader.cs
- XmlNamespaceDeclarationsAttribute.cs
- TextOutput.cs
- SplayTreeNode.cs
- GlyphingCache.cs
- CounterSample.cs
- EndpointDiscoveryElement.cs
- ResXResourceSet.cs
- SoapInteropTypes.cs
- OdbcTransaction.cs
- remotingproxy.cs
- FixedSOMElement.cs
- SelectionListComponentEditor.cs
- XmlSchemaAttributeGroupRef.cs
- ProfilePropertyNameValidator.cs
- BamlLocalizableResourceKey.cs
- LocalizationParserHooks.cs
- InternalSafeNativeMethods.cs
- recordstate.cs
- EntityDataSourceMemberPath.cs
- BaseHashHelper.cs
- ExpressionBindings.cs
- JavaScriptString.cs
- SpellerInterop.cs
- FromReply.cs
- PlatformCulture.cs
- CqlQuery.cs
- WebMethodAttribute.cs
- StandardTransformFactory.cs
- XmlSchemaDocumentation.cs
- HostingEnvironmentException.cs
- DataGridHeaderBorder.cs
- EventArgs.cs
- ConfigurationStrings.cs
- Switch.cs
- NullRuntimeConfig.cs
- DataGridColumnHeaderAutomationPeer.cs
- OdbcFactory.cs
- DesigntimeLicenseContext.cs
- TrustDriver.cs
- TreeNode.cs
- IgnoreFileBuildProvider.cs
- WebBrowser.cs
- ContentElementCollection.cs
- DataServiceQueryOfT.cs
- OledbConnectionStringbuilder.cs
- XmlDataSourceView.cs
- PathFigureCollectionConverter.cs
- DataRowView.cs
- ResolveCriteriaCD1.cs
- BasePropertyDescriptor.cs
- BasicExpressionVisitor.cs
- HttpCachePolicy.cs
- CalendarModeChangedEventArgs.cs
- ClrProviderManifest.cs
- PolicyUnit.cs
- CanonicalFontFamilyReference.cs
- SerializationInfoEnumerator.cs
- SQLDouble.cs
- OdbcDataReader.cs
- QueryExpr.cs
- TextDecoration.cs
- DateTimeFormat.cs
- CompilerInfo.cs
- TimeSpanConverter.cs
- SweepDirectionValidation.cs
- AutomationPeer.cs
- WindowsRichEditRange.cs
- BuilderInfo.cs
- RequestValidator.cs
- HttpCapabilitiesBase.cs
- SystemFonts.cs
- BaseServiceProvider.cs