Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Configuration / ProfilePropertyNameValidator.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SimpleColumnProvider.cs
- ComplexType.cs
- Canvas.cs
- Tuple.cs
- DataControlImageButton.cs
- FormsAuthentication.cs
- DataGridItemEventArgs.cs
- OutputCacheEntry.cs
- ManagedWndProcTracker.cs
- DiscardableAttribute.cs
- mediaeventshelper.cs
- ViewBase.cs
- ContainerControl.cs
- InputLanguageCollection.cs
- securitycriticaldataformultiplegetandset.cs
- CodeLinePragma.cs
- QueryGeneratorBase.cs
- MdiWindowListStrip.cs
- SingleTagSectionHandler.cs
- HMAC.cs
- RemoteCryptoRsaServiceProvider.cs
- AddIn.cs
- StrokeNodeData.cs
- FrugalMap.cs
- XPathParser.cs
- RichTextBox.cs
- SelectionHighlightInfo.cs
- SchemaElementLookUpTableEnumerator.cs
- PassportPrincipal.cs
- ComponentCommands.cs
- Gdiplus.cs
- DictionarySurrogate.cs
- DbConvert.cs
- PrivacyNoticeBindingElementImporter.cs
- LeaseManager.cs
- LateBoundBitmapDecoder.cs
- ByteStorage.cs
- HandoffBehavior.cs
- FixedSOMImage.cs
- ObjectStateEntryDbDataRecord.cs
- LogicalCallContext.cs
- CmsInterop.cs
- ContentHostHelper.cs
- EpmSourceTree.cs
- ComPersistableTypeElement.cs
- CodeDirectoryCompiler.cs
- HtmlLinkAdapter.cs
- BoolExpression.cs
- PageParserFilter.cs
- Int16KeyFrameCollection.cs
- MaskedTextProvider.cs
- TableRowCollection.cs
- MdiWindowListStrip.cs
- InputBinding.cs
- InsufficientExecutionStackException.cs
- NotifyCollectionChangedEventArgs.cs
- TypedDataSourceCodeGenerator.cs
- ChtmlTextWriter.cs
- WindowsFormsSynchronizationContext.cs
- CanonicalFormWriter.cs
- CaretElement.cs
- Base64Encoder.cs
- BridgeDataReader.cs
- CodeSnippetExpression.cs
- RtType.cs
- CursorConverter.cs
- WinCategoryAttribute.cs
- datacache.cs
- ComponentResourceKeyConverter.cs
- _SslState.cs
- ContainerVisual.cs
- RichTextBoxConstants.cs
- EventHandlerList.cs
- CustomMenuItemCollection.cs
- Label.cs
- WithParamAction.cs
- ParserStreamGeometryContext.cs
- ParentUndoUnit.cs
- Point3DCollectionConverter.cs
- hwndwrapper.cs
- ParserHooks.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- SqlProvider.cs
- Rules.cs
- WebPartMovingEventArgs.cs
- DeploymentExceptionMapper.cs
- DataGridViewComboBoxEditingControl.cs
- SqlWorkflowPersistenceService.cs
- SqlDataReaderSmi.cs
- ParseNumbers.cs
- ResourceReferenceExpressionConverter.cs
- Activity.cs
- ToolboxCategoryItems.cs
- CrossSiteScriptingValidation.cs
- MetadataWorkspace.cs
- arc.cs
- FunctionNode.cs
- HttpResponseInternalWrapper.cs
- JsonUriDataContract.cs
- InvariantComparer.cs