Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- CollectionDataContractAttribute.cs
- SpeechRecognizer.cs
- ArrangedElement.cs
- XPathException.cs
- TriggerBase.cs
- AdornerDecorator.cs
- FactoryGenerator.cs
- XmlBoundElement.cs
- SQLMoney.cs
- HttpRuntime.cs
- WindowsListViewGroupSubsetLink.cs
- AuthStoreRoleProvider.cs
- BitmapEffectvisualstate.cs
- MetaForeignKeyColumn.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- QueryException.cs
- PreviewControlDesigner.cs
- CreateUserWizardStep.cs
- XmlSchemaGroup.cs
- ListSourceHelper.cs
- ScalarRestriction.cs
- DataSourceCache.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- GAC.cs
- AsymmetricAlgorithm.cs
- Polyline.cs
- RawStylusInputReport.cs
- WSSecureConversationFeb2005.cs
- DocumentSequenceHighlightLayer.cs
- UIPermission.cs
- DataGridViewCellMouseEventArgs.cs
- GeometryHitTestParameters.cs
- Int32AnimationUsingKeyFrames.cs
- Visual3D.cs
- HitTestParameters3D.cs
- DifferencingCollection.cs
- MetadataFile.cs
- DispatchWrapper.cs
- RecognitionEventArgs.cs
- DoubleAnimationBase.cs
- RSACryptoServiceProvider.cs
- ItemsControlAutomationPeer.cs
- RSAOAEPKeyExchangeDeformatter.cs
- SwitchElementsCollection.cs
- SecurityCriticalDataForSet.cs
- SQLInt16Storage.cs
- DynamicILGenerator.cs
- MappingException.cs
- SetterBase.cs
- ExpressionHelper.cs
- InfoCardCryptoHelper.cs
- PackageDigitalSignatureManager.cs
- WindowShowOrOpenTracker.cs
- WebServiceTypeData.cs
- PersonalizationStateQuery.cs
- _NetworkingPerfCounters.cs
- WmlPhoneCallAdapter.cs
- AsyncCallback.cs
- DiscoveryVersion.cs
- WebPartMenuStyle.cs
- WeakEventTable.cs
- EventLogWatcher.cs
- IdentityManager.cs
- StringInfo.cs
- WindowsFormsSynchronizationContext.cs
- BamlCollectionHolder.cs
- EntityContainer.cs
- DataKeyCollection.cs
- ArcSegment.cs
- HtmlTableRowCollection.cs
- handlecollector.cs
- ScopelessEnumAttribute.cs
- MatchAttribute.cs
- WinEventTracker.cs
- PriorityQueue.cs
- NetSectionGroup.cs
- TableRow.cs
- ISO2022Encoding.cs
- CompletionBookmark.cs
- StdValidatorsAndConverters.cs
- PhotoPrintingIntent.cs
- Helpers.cs
- ExpandedWrapper.cs
- AtomServiceDocumentSerializer.cs
- MemberInfoSerializationHolder.cs
- SqlTypesSchemaImporter.cs
- GeneralTransform3DTo2DTo3D.cs
- StateElement.cs
- MetafileHeaderWmf.cs
- ReadOnlyCollection.cs
- ContextStaticAttribute.cs
- newinstructionaction.cs
- ListItemConverter.cs
- TableCell.cs
- TableItemProviderWrapper.cs
- TableLayout.cs
- AsymmetricKeyExchangeFormatter.cs
- CodeAccessPermission.cs
- CompositeScriptReference.cs
- SamlConditions.cs