Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / DynamicData / DynamicData / TableNameAttribute.cs / 1305376 / TableNameAttribute.cs
using System.Security.Permissions; namespace System.Web.DynamicData { ////// Allows for overriding the name of a table. (What previously TableOptions was used for). /// [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)] public sealed class TableNameAttribute : Attribute { ////// The new name of the table /// public string Name { get; private set; } ////// Creates a new instance /// /// the new name override public TableNameAttribute(string name) { if (String.IsNullOrEmpty(name)) { throw new ArgumentNullException("name"); } Name = name; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. using System.Security.Permissions; namespace System.Web.DynamicData { ////// Allows for overriding the name of a table. (What previously TableOptions was used for). /// [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)] public sealed class TableNameAttribute : Attribute { ////// The new name of the table /// public string Name { get; private set; } ////// Creates a new instance /// /// the new name override public TableNameAttribute(string name) { if (String.IsNullOrEmpty(name)) { throw new ArgumentNullException("name"); } Name = name; } } } // 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
- ProtocolInformationReader.cs
- HyperLinkStyle.cs
- Calendar.cs
- DocumentXPathNavigator.cs
- Rethrow.cs
- PackageRelationshipSelector.cs
- InProcStateClientManager.cs
- Command.cs
- EasingKeyFrames.cs
- ModelToObjectValueConverter.cs
- QueryCacheKey.cs
- MouseOverProperty.cs
- DBPropSet.cs
- BinaryQueryOperator.cs
- EntityContainer.cs
- XNodeValidator.cs
- HostVisual.cs
- ContainerParaClient.cs
- CodeVariableDeclarationStatement.cs
- XmlCharacterData.cs
- ControlParameter.cs
- Merger.cs
- DataRecordInfo.cs
- ErrorWrapper.cs
- AnnotationAdorner.cs
- BaseTemplateCodeDomTreeGenerator.cs
- MemberInfoSerializationHolder.cs
- MappingMetadataHelper.cs
- SocketCache.cs
- ContextMenuAutomationPeer.cs
- Size3DConverter.cs
- InlineObject.cs
- UserControl.cs
- ContentTextAutomationPeer.cs
- Color.cs
- ClusterRegistryConfigurationProvider.cs
- DataTableCollection.cs
- XamlPathDataSerializer.cs
- __TransparentProxy.cs
- XComponentModel.cs
- RuntimeArgumentHandle.cs
- FileDialogPermission.cs
- InternalPermissions.cs
- RegexMatchCollection.cs
- FunctionCommandText.cs
- RulePatternOps.cs
- ImageAnimator.cs
- SiteMapPath.cs
- NoClickablePointException.cs
- SecurityElement.cs
- SubMenuStyle.cs
- GridView.cs
- FtpWebResponse.cs
- EllipseGeometry.cs
- HtmlElementEventArgs.cs
- TemplatePropertyEntry.cs
- DisplayNameAttribute.cs
- RealizationDrawingContextWalker.cs
- ToggleProviderWrapper.cs
- GraphicsPathIterator.cs
- TrimSurroundingWhitespaceAttribute.cs
- RNGCryptoServiceProvider.cs
- DateTimeFormatInfo.cs
- SqlProcedureAttribute.cs
- MediaElement.cs
- SqlTransaction.cs
- HostVisual.cs
- DispatcherObject.cs
- RtfToXamlReader.cs
- BaseProcessProtocolHandler.cs
- TreeNodeBinding.cs
- SqlProviderServices.cs
- XmlDeclaration.cs
- BufferedStream.cs
- CodeCastExpression.cs
- SecureEnvironment.cs
- HttpUnhandledOperationInvoker.cs
- Point4D.cs
- NativeCompoundFileAPIs.cs
- DesigntimeLicenseContextSerializer.cs
- FontEditor.cs
- ToolStripPanelRow.cs
- AsyncPostBackTrigger.cs
- Zone.cs
- HttpFileCollection.cs
- ViewStateModeByIdAttribute.cs
- WindowsTreeView.cs
- TabletDeviceInfo.cs
- AudioLevelUpdatedEventArgs.cs
- PropertyEntry.cs
- MutableAssemblyCacheEntry.cs
- PointCollectionConverter.cs
- UnauthorizedAccessException.cs
- XappLauncher.cs
- VariantWrapper.cs
- BamlLocalizableResourceKey.cs
- DependencyPropertyConverter.cs
- ListParaClient.cs
- SamlAssertion.cs
- ComboBoxItem.cs