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
- XsdCachingReader.cs
- StickyNoteAnnotations.cs
- WebPartHeaderCloseVerb.cs
- webclient.cs
- WebHttpSecurity.cs
- ActivityBuilderHelper.cs
- HostDesigntimeLicenseContext.cs
- PagerSettings.cs
- WindowsAuthenticationEventArgs.cs
- ToolStripButton.cs
- SqlProfileProvider.cs
- SafeNativeMethods.cs
- RemotingClientProxy.cs
- NavigationProperty.cs
- CompilerResults.cs
- LineGeometry.cs
- SRef.cs
- CasesDictionary.cs
- BaseParaClient.cs
- documentation.cs
- TypeBrowserDialog.cs
- XPathNodePointer.cs
- BlockingCollection.cs
- ProtocolElement.cs
- ColorTransformHelper.cs
- ReadOnlyCollectionBase.cs
- UInt64Converter.cs
- DATA_BLOB.cs
- LinearQuaternionKeyFrame.cs
- HotSpotCollection.cs
- UserPrincipalNameElement.cs
- EditorZone.cs
- DataStreamFromComStream.cs
- DictionarySectionHandler.cs
- PropertyPath.cs
- ClientApiGenerator.cs
- StackBuilderSink.cs
- ClientSettingsProvider.cs
- XmlResolver.cs
- XmlSerializerNamespaces.cs
- WebPartEditVerb.cs
- XmlFormatReaderGenerator.cs
- AssemblySettingAttributes.cs
- BitmapFrameEncode.cs
- X509Certificate2Collection.cs
- XmlQualifiedNameTest.cs
- RenderCapability.cs
- RegexMatch.cs
- VerificationException.cs
- ExceptionCollection.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- ItemsControl.cs
- IPAddressCollection.cs
- serverconfig.cs
- SubclassTypeValidator.cs
- DataFormat.cs
- OptimisticConcurrencyException.cs
- ConfigurationStrings.cs
- IsolatedStorageFileStream.cs
- CookielessHelper.cs
- SmtpFailedRecipientException.cs
- FontInfo.cs
- NavigatingCancelEventArgs.cs
- CodeAttachEventStatement.cs
- SelectionListComponentEditor.cs
- GifBitmapEncoder.cs
- DispatcherSynchronizationContext.cs
- ToolStripMenuItem.cs
- OracleParameterBinding.cs
- TransactionInterop.cs
- MouseBinding.cs
- SrgsText.cs
- InvalidAsynchronousStateException.cs
- ObsoleteAttribute.cs
- StrokeNode.cs
- RsaSecurityKey.cs
- MemberHolder.cs
- DecoderFallback.cs
- CssTextWriter.cs
- RawStylusInput.cs
- KerberosSecurityTokenParameters.cs
- VisualCollection.cs
- EventSetter.cs
- DecoderReplacementFallback.cs
- ComponentDispatcherThread.cs
- ColorTransform.cs
- EditorPartCollection.cs
- XmlNodeChangedEventArgs.cs
- PolicyUnit.cs
- ServiceContractAttribute.cs
- DictionaryEditChange.cs
- EventData.cs
- CollectionsUtil.cs
- CompilerScopeManager.cs
- AddressHeaderCollectionElement.cs
- MouseButtonEventArgs.cs
- SimpleApplicationHost.cs
- FontStretchConverter.cs
- InstanceData.cs
- TreeViewItem.cs