Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Profile / Attributes.cs / 1305376 / Attributes.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Profile { using System; using System.ComponentModel; using System.Security.Permissions; [AttributeUsage(AttributeTargets.Property)] public sealed class ProfileProviderAttribute : Attribute { private string _ProviderName; public ProfileProviderAttribute(string providerName) { _ProviderName = providerName; } public string ProviderName { get { return _ProviderName; } } } [AttributeUsage(AttributeTargets.Property)] public sealed class SettingsAllowAnonymousAttribute : Attribute { private bool _Allow; public SettingsAllowAnonymousAttribute(bool allow) { _Allow = allow; } public bool Allow { get { return _Allow; } } public override bool IsDefaultAttribute() { return !_Allow; } } [AttributeUsage(AttributeTargets.Property)] public sealed class CustomProviderDataAttribute : Attribute { private string _CustomProviderData; public CustomProviderDataAttribute(string customProviderData) { _CustomProviderData = customProviderData; } public string CustomProviderData { get { return _CustomProviderData; } } public override bool IsDefaultAttribute() { return string.IsNullOrEmpty(_CustomProviderData); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Profile { using System; using System.ComponentModel; using System.Security.Permissions; [AttributeUsage(AttributeTargets.Property)] public sealed class ProfileProviderAttribute : Attribute { private string _ProviderName; public ProfileProviderAttribute(string providerName) { _ProviderName = providerName; } public string ProviderName { get { return _ProviderName; } } } [AttributeUsage(AttributeTargets.Property)] public sealed class SettingsAllowAnonymousAttribute : Attribute { private bool _Allow; public SettingsAllowAnonymousAttribute(bool allow) { _Allow = allow; } public bool Allow { get { return _Allow; } } public override bool IsDefaultAttribute() { return !_Allow; } } [AttributeUsage(AttributeTargets.Property)] public sealed class CustomProviderDataAttribute : Attribute { private string _CustomProviderData; public CustomProviderDataAttribute(string customProviderData) { _CustomProviderData = customProviderData; } public string CustomProviderData { get { return _CustomProviderData; } } public override bool IsDefaultAttribute() { return string.IsNullOrEmpty(_CustomProviderData); } } } // 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
- ErrorFormatter.cs
- ChildChangedEventArgs.cs
- InputMethod.cs
- IDispatchConstantAttribute.cs
- _SslStream.cs
- Model3DGroup.cs
- ViewCellRelation.cs
- KeyValueConfigurationElement.cs
- EvidenceBase.cs
- ButtonFlatAdapter.cs
- DesignerCatalogPartChrome.cs
- PeoplePickerWrapper.cs
- SoapRpcMethodAttribute.cs
- AnnotationHelper.cs
- PropertyMapper.cs
- PersonalizationStateInfoCollection.cs
- DataGridRowAutomationPeer.cs
- Accessible.cs
- TimeEnumHelper.cs
- OfTypeExpression.cs
- IsolatedStorage.cs
- fixedPageContentExtractor.cs
- SafeHandles.cs
- ProfessionalColors.cs
- TextBoxBaseDesigner.cs
- GridView.cs
- shaperfactory.cs
- ProcessHostConfigUtils.cs
- SoapFormatExtensions.cs
- Range.cs
- DataGridLinkButton.cs
- PostBackTrigger.cs
- GlobalProxySelection.cs
- FileEnumerator.cs
- FilterException.cs
- SourceCollection.cs
- safemediahandle.cs
- Transform3D.cs
- FastPropertyAccessor.cs
- XPathAncestorIterator.cs
- DataGridViewCell.cs
- ControlPager.cs
- DataGridViewCellValidatingEventArgs.cs
- XPathExpr.cs
- TraceListener.cs
- WinFormsSecurity.cs
- SynchronizationContext.cs
- ButtonField.cs
- PointConverter.cs
- NullableConverter.cs
- LingerOption.cs
- FileController.cs
- TextAutomationPeer.cs
- PaperSize.cs
- AmbientValueAttribute.cs
- TreeNodeStyle.cs
- TransformedBitmap.cs
- ClientEventManager.cs
- XNodeNavigator.cs
- XsltInput.cs
- UndoUnit.cs
- NameScopePropertyAttribute.cs
- SqlDataReader.cs
- ClockController.cs
- TextServicesLoader.cs
- TextShapeableCharacters.cs
- EnumUnknown.cs
- ClientFormsAuthenticationMembershipProvider.cs
- SqlBulkCopyColumnMapping.cs
- BamlRecords.cs
- IdnElement.cs
- InvalidStoreProtectionKeyException.cs
- TextServicesHost.cs
- CollectionMarkupSerializer.cs
- WebBrowserNavigatedEventHandler.cs
- ConnectionsZone.cs
- BinaryObjectInfo.cs
- LongTypeConverter.cs
- ZipIOCentralDirectoryBlock.cs
- RequestCacheValidator.cs
- ColumnMapTranslator.cs
- OleCmdHelper.cs
- WinEventHandler.cs
- NetDataContractSerializer.cs
- FontUnitConverter.cs
- TextFormatterHost.cs
- StatusBarDrawItemEvent.cs
- TransportBindingElement.cs
- DbConnectionClosed.cs
- OracleFactory.cs
- WebPartManager.cs
- XmlTypeAttribute.cs
- BinaryWriter.cs
- NumberAction.cs
- Variant.cs
- DesignerSerializationVisibilityAttribute.cs
- FileChangesMonitor.cs
- DeclarationUpdate.cs
- NewArray.cs
- StreamGeometry.cs