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
- PolicyLevel.cs
- UriTemplateHelpers.cs
- webclient.cs
- QuaternionRotation3D.cs
- FormViewDeleteEventArgs.cs
- FormatStringEditor.cs
- VisualTreeUtils.cs
- DefaultValueAttribute.cs
- DataGridViewToolTip.cs
- AssociationEndMember.cs
- XmlSchemaSimpleContentRestriction.cs
- LocalizationComments.cs
- SchemaManager.cs
- TdsParserSessionPool.cs
- DataStreamFromComStream.cs
- HwndAppCommandInputProvider.cs
- Part.cs
- ObjectListField.cs
- TransformValueSerializer.cs
- complextypematerializer.cs
- FaultPropagationQuery.cs
- DesignOnlyAttribute.cs
- XComponentModel.cs
- VirtualPathProvider.cs
- BinaryObjectReader.cs
- Pair.cs
- DefaultHttpHandler.cs
- EndpointConfigContainer.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- XsdCachingReader.cs
- GridViewRow.cs
- OutputCacheSettings.cs
- QuaternionValueSerializer.cs
- DateRangeEvent.cs
- AsymmetricKeyExchangeFormatter.cs
- InvalidComObjectException.cs
- EntryPointNotFoundException.cs
- FixedFindEngine.cs
- ModuleConfigurationInfo.cs
- XmlAttributeProperties.cs
- Query.cs
- SuppressMergeCheckAttribute.cs
- HtmlTernaryTree.cs
- FrameworkContentElement.cs
- XmlExtensionFunction.cs
- CallContext.cs
- CustomActivityDesigner.cs
- TerminatorSinks.cs
- PassportAuthenticationEventArgs.cs
- RbTree.cs
- VariableExpressionConverter.cs
- RoleService.cs
- SortedSet.cs
- XPathSelfQuery.cs
- DbConnectionPoolCounters.cs
- CellTreeNodeVisitors.cs
- _OverlappedAsyncResult.cs
- DataServiceHost.cs
- CompilationUnit.cs
- ContextMenuStripGroup.cs
- DrawingVisual.cs
- TransactionInterop.cs
- MessageQueueInstaller.cs
- SerializationStore.cs
- Transform3DGroup.cs
- InputDevice.cs
- ServiceBusyException.cs
- hwndwrapper.cs
- Object.cs
- SynchronizationLockException.cs
- Environment.cs
- EventLogPermissionEntryCollection.cs
- DecoderReplacementFallback.cs
- __Filters.cs
- OleDbParameter.cs
- CompiledQueryCacheKey.cs
- DoWorkEventArgs.cs
- WebUtil.cs
- LoadMessageLogger.cs
- FileResponseElement.cs
- HTTP_SERVICE_CONFIG_URLACL_KEY.cs
- SemanticBasicElement.cs
- DelegatingConfigHost.cs
- UrlMappingsModule.cs
- EntityModelSchemaGenerator.cs
- XPathItem.cs
- Journal.cs
- COM2ComponentEditor.cs
- BitmapEffectDrawing.cs
- ComponentManagerBroker.cs
- SystemBrushes.cs
- Update.cs
- TypeToken.cs
- LongValidatorAttribute.cs
- SchemaManager.cs
- EventMappingSettings.cs
- ParameterCollection.cs
- ConditionBrowserDialog.cs
- WpfSharedBamlSchemaContext.cs
- HasRunnableWorkflowEvent.cs