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
- AnnotationComponentChooser.cs
- DynamicRenderer.cs
- ColorContextHelper.cs
- CodeTypeDeclaration.cs
- Memoizer.cs
- EditingCommands.cs
- SqlStream.cs
- QuotedPrintableStream.cs
- TextServicesDisplayAttribute.cs
- OnOperation.cs
- InteropBitmapSource.cs
- ModelFactory.cs
- PngBitmapEncoder.cs
- Tile.cs
- ValidatingPropertiesEventArgs.cs
- PropertyHelper.cs
- ParserHooks.cs
- GroupBox.cs
- SmiRecordBuffer.cs
- DispatcherEventArgs.cs
- ServiceChannelProxy.cs
- DataRelation.cs
- HTMLTextWriter.cs
- SqlDataAdapter.cs
- ConstructorArgumentAttribute.cs
- HtmlString.cs
- ListViewUpdateEventArgs.cs
- DelayedRegex.cs
- IndexedEnumerable.cs
- DecimalAnimationUsingKeyFrames.cs
- WebPartDescription.cs
- TextSimpleMarkerProperties.cs
- OdbcConnectionFactory.cs
- ContainerControl.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- HtmlAnchor.cs
- ManipulationCompletedEventArgs.cs
- RequestTimeoutManager.cs
- KnownTypes.cs
- Baml2006KnownTypes.cs
- _SSPISessionCache.cs
- ListViewDataItem.cs
- InvokeMethodDesigner.xaml.cs
- GradientBrush.cs
- SafeNativeMemoryHandle.cs
- EndEvent.cs
- SecurityTokenResolver.cs
- _PooledStream.cs
- WebPartDescription.cs
- VectorCollection.cs
- XDeferredAxisSource.cs
- DataSourceHelper.cs
- mda.cs
- IdnElement.cs
- ComponentChangingEvent.cs
- ComAwareEventInfo.cs
- RotateTransform.cs
- CodeDomConfigurationHandler.cs
- WebProxyScriptElement.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- XmlValidatingReaderImpl.cs
- EpmTargetTree.cs
- _StreamFramer.cs
- DeliveryRequirementsAttribute.cs
- CellTreeNode.cs
- OdbcDataReader.cs
- KeyedQueue.cs
- KeyTime.cs
- HandlerMappingMemo.cs
- messageonlyhwndwrapper.cs
- BuildProviderUtils.cs
- ClickablePoint.cs
- ProgressBarBrushConverter.cs
- XmlUtilWriter.cs
- MethodRental.cs
- GridViewColumnCollectionChangedEventArgs.cs
- DataTemplate.cs
- WebPartUserCapability.cs
- EnumType.cs
- TextDecorationCollection.cs
- Style.cs
- NativeMethods.cs
- WebHeaderCollection.cs
- Recipient.cs
- DesignerTextBoxAdapter.cs
- OleDbReferenceCollection.cs
- CompressEmulationStream.cs
- GradientStop.cs
- FlowDocumentReader.cs
- HashCryptoHandle.cs
- FormViewCommandEventArgs.cs
- DataAdapter.cs
- MessageHeaderT.cs
- ArrayConverter.cs
- UnSafeCharBuffer.cs
- AdornerLayer.cs
- ApplicationCommands.cs
- FrameworkContentElement.cs
- ByteAnimationBase.cs
- WindowsScrollBarBits.cs