Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / Profile / Attributes.cs / 1 / 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)] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class ProfileProviderAttribute : Attribute { private string _ProviderName; public ProfileProviderAttribute(string providerName) { _ProviderName = providerName; } public string ProviderName { get { return _ProviderName; } } } [AttributeUsage(AttributeTargets.Property)] [AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)] 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)] [AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)] 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)] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class ProfileProviderAttribute : Attribute { private string _ProviderName; public ProfileProviderAttribute(string providerName) { _ProviderName = providerName; } public string ProviderName { get { return _ProviderName; } } } [AttributeUsage(AttributeTargets.Property)] [AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)] 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)] [AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)] 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
- SQLBinaryStorage.cs
- RepeatBehavior.cs
- GreenMethods.cs
- MatchAttribute.cs
- NumericExpr.cs
- ItemCheckEvent.cs
- SigningCredentials.cs
- Rfc2898DeriveBytes.cs
- SqlDataSourceEnumerator.cs
- ResetableIterator.cs
- CodeDirectiveCollection.cs
- EntitySetBaseCollection.cs
- DataRecord.cs
- HwndTarget.cs
- ControlTemplate.cs
- TextShapeableCharacters.cs
- UnmanagedBitmapWrapper.cs
- DSASignatureDeformatter.cs
- PixelFormats.cs
- XmlWellformedWriter.cs
- DataGridViewHitTestInfo.cs
- MemoryRecordBuffer.cs
- SqlClientWrapperSmiStreamChars.cs
- DataServiceHostFactory.cs
- TextBreakpoint.cs
- CaseExpr.cs
- TypeReference.cs
- BulletChrome.cs
- _LocalDataStore.cs
- ContentType.cs
- ExtensibleClassFactory.cs
- ClientFormsAuthenticationCredentials.cs
- ProxyGenerator.cs
- DbConnectionPoolOptions.cs
- IntSecurity.cs
- CodePropertyReferenceExpression.cs
- SerialReceived.cs
- LinkConverter.cs
- externdll.cs
- DynamicResourceExtension.cs
- Bezier.cs
- MultiByteCodec.cs
- ContentPropertyAttribute.cs
- AttachedPropertyDescriptor.cs
- EventLogLink.cs
- ReceiveCompletedEventArgs.cs
- BmpBitmapDecoder.cs
- FullTextState.cs
- TabPage.cs
- SspiNegotiationTokenAuthenticatorState.cs
- InputLanguageCollection.cs
- SqlRowUpdatedEvent.cs
- X500Name.cs
- ScriptControlDescriptor.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- Base64Encoder.cs
- IdentityNotMappedException.cs
- WebPermission.cs
- base64Transforms.cs
- HwndSource.cs
- AsymmetricSecurityProtocolFactory.cs
- HttpProfileGroupBase.cs
- TableCellCollection.cs
- CommandDesigner.cs
- ContentElementAutomationPeer.cs
- BuildProvidersCompiler.cs
- EnumConverter.cs
- MenuItemAutomationPeer.cs
- XmlSchemaSequence.cs
- ViewManager.cs
- DtdParser.cs
- HandleRef.cs
- DateTime.cs
- XmlSchemaCollection.cs
- GridViewActionList.cs
- MiniConstructorInfo.cs
- DataGridViewLinkCell.cs
- InlineCollection.cs
- ChannelTraceRecord.cs
- HostSecurityManager.cs
- GZipDecoder.cs
- Icon.cs
- SQLSingleStorage.cs
- XamlClipboardData.cs
- EditorOptionAttribute.cs
- UIPropertyMetadata.cs
- TextEditorThreadLocalStore.cs
- XmlSchemaAnyAttribute.cs
- ADConnectionHelper.cs
- ComboBox.cs
- ExpressionNormalizer.cs
- _Semaphore.cs
- Int32CollectionValueSerializer.cs
- TextBoxDesigner.cs
- MetricEntry.cs
- clipboard.cs
- Manipulation.cs
- ModelTreeEnumerator.cs
- DataBoundControl.cs
- PageAdapter.cs