Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / Configuration / ProfilePropertyNameValidator.cs / 1 / ProfilePropertyNameValidator.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Configuration { using System; using System.Xml; using System.Configuration; using System.Collections.Specialized; using System.Collections; using System.IO; using System.Text; using System.Web.Util; internal sealed class ProfilePropertyNameValidator : ConfigurationValidatorBase { public override bool CanValidate(Type type) { return (type == typeof(string)); } public override void Validate(object value) { if (value == null) { throw new ArgumentNullException("value"); } string s = value as string; if (s != null) { s = s.Trim(); } if (string.IsNullOrEmpty(s)) { throw new ArgumentException(SR.GetString(SR.Profile_name_can_not_be_empty)); } if (s.Contains(".")) { throw new ArgumentException(SR.GetString(SR.Profile_name_can_not_contain_period)); } } internal static ProfilePropertyNameValidator SingletonInstance = new ProfilePropertyNameValidator(); } } // 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
- ItemContainerProviderWrapper.cs
- FileUpload.cs
- GlyphElement.cs
- datacache.cs
- WebReferenceOptions.cs
- AdjustableArrowCap.cs
- QilPatternVisitor.cs
- FormParameter.cs
- ConfigXmlComment.cs
- SamlAuthorizationDecisionStatement.cs
- TypeConverterHelper.cs
- XmlCharCheckingWriter.cs
- EUCJPEncoding.cs
- WeakReference.cs
- SQLInt64.cs
- FileSecurity.cs
- ObjectDataSourceMethodEventArgs.cs
- MetadataArtifactLoaderCompositeFile.cs
- ChannelBinding.cs
- CollectionChangeEventArgs.cs
- ClientUtils.cs
- LexicalChunk.cs
- OleDbPermission.cs
- Executor.cs
- Convert.cs
- XamlClipboardData.cs
- ExtensionWindowHeader.cs
- ThousandthOfEmRealPoints.cs
- TextSerializer.cs
- SHA512Managed.cs
- EqualityComparer.cs
- GridSplitter.cs
- Bits.cs
- PriorityChain.cs
- _AuthenticationState.cs
- GlyphCache.cs
- OperationParameterInfoCollection.cs
- TemplatedControlDesigner.cs
- NativeMethods.cs
- DynamicPropertyHolder.cs
- Predicate.cs
- EntityContainer.cs
- DynamicRendererThreadManager.cs
- _ListenerRequestStream.cs
- TypeInitializationException.cs
- NavigatorOutput.cs
- FormViewDeleteEventArgs.cs
- MarkupCompilePass1.cs
- TcpPortSharing.cs
- HeaderCollection.cs
- Table.cs
- DrawingContextDrawingContextWalker.cs
- StorageBasedPackageProperties.cs
- TaiwanLunisolarCalendar.cs
- SecureStringHasher.cs
- MultipartContentParser.cs
- CroppedBitmap.cs
- DesignerLoader.cs
- SurrogateSelector.cs
- MetadataProperty.cs
- SafeCryptoHandles.cs
- xmlglyphRunInfo.cs
- ObjectDataSourceFilteringEventArgs.cs
- ReferenceTypeElement.cs
- MetricEntry.cs
- XmlDictionaryReaderQuotas.cs
- SqlDataSourceRefreshSchemaForm.cs
- XmlHierarchicalDataSourceView.cs
- ImageSource.cs
- CreationContext.cs
- NativeMethods.cs
- PersonalizationDictionary.cs
- QueryableDataSourceView.cs
- SiteMap.cs
- ToolStripTextBox.cs
- HttpsHostedTransportConfiguration.cs
- ZoneIdentityPermission.cs
- EncodedStreamFactory.cs
- XamlPointCollectionSerializer.cs
- MailSettingsSection.cs
- SolidColorBrush.cs
- StreamMarshaler.cs
- TrustManagerPromptUI.cs
- DataGridViewElement.cs
- ListViewUpdatedEventArgs.cs
- FieldNameLookup.cs
- AcceptorSessionSymmetricTransportSecurityProtocol.cs
- SystemColors.cs
- WebPartDescription.cs
- HttpResponseWrapper.cs
- ExceptionUtil.cs
- DigitalSignatureProvider.cs
- MessageDescription.cs
- Types.cs
- ProxyWebPart.cs
- ArrangedElement.cs
- FacetEnabledSchemaElement.cs
- DockPattern.cs
- HttpCapabilitiesSectionHandler.cs
- ReadOnlyCollection.cs