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
- SegmentInfo.cs
- EmitterCache.cs
- WebPartCatalogAddVerb.cs
- TriggerAction.cs
- RsaKeyIdentifierClause.cs
- ErrorEventArgs.cs
- Compensation.cs
- RightsManagementEncryptedStream.cs
- UnsafeNativeMethods.cs
- SqlTrackingService.cs
- HeaderUtility.cs
- ConfigurationException.cs
- ObservableDictionary.cs
- wgx_commands.cs
- CapabilitiesSection.cs
- CompilationRelaxations.cs
- RelationshipEnd.cs
- RoutedUICommand.cs
- RoleManagerModule.cs
- XmlHelper.cs
- Encoder.cs
- DPCustomTypeDescriptor.cs
- hresults.cs
- TrustManagerPromptUI.cs
- ImportCatalogPart.cs
- StickyNote.cs
- CommandBindingCollection.cs
- ClientScriptItem.cs
- GridViewRowPresenterBase.cs
- MetadataItemEmitter.cs
- XmlProcessingInstruction.cs
- ArrangedElement.cs
- Content.cs
- PrinterUnitConvert.cs
- BasicBrowserDialog.cs
- SafeThreadHandle.cs
- MiniCustomAttributeInfo.cs
- EncodingTable.cs
- SqlCommandSet.cs
- DataGridViewTopRowAccessibleObject.cs
- ProfileProvider.cs
- ForceCopyBuildProvider.cs
- PropertyItemInternal.cs
- DLinqAssociationProvider.cs
- RoleExceptions.cs
- XPathScanner.cs
- SafeLibraryHandle.cs
- TableCell.cs
- ServerProtocol.cs
- GregorianCalendar.cs
- XmlSchemaComplexContentExtension.cs
- ImageDrawing.cs
- AppDomainResourcePerfCounters.cs
- TreeWalker.cs
- DetailsViewPagerRow.cs
- ParallelTimeline.cs
- IntegrationExceptionEventArgs.cs
- SecurityState.cs
- ProviderConnectionPoint.cs
- HtmlString.cs
- ZipPackagePart.cs
- RoleManagerModule.cs
- MultipartContentParser.cs
- PolicyStatement.cs
- HtmlEmptyTagControlBuilder.cs
- TextProviderWrapper.cs
- RegexCharClass.cs
- DiscoveryMessageSequenceCD1.cs
- DetailsViewPageEventArgs.cs
- GraphicsPathIterator.cs
- Dynamic.cs
- PopOutPanel.cs
- EntityProviderFactory.cs
- MemberPath.cs
- SR.cs
- SafeHandle.cs
- StackBuilderSink.cs
- DodSequenceMerge.cs
- Wrapper.cs
- MarkedHighlightComponent.cs
- ToolStripGripRenderEventArgs.cs
- DefaultHttpHandler.cs
- _ShellExpression.cs
- UpDownBase.cs
- InternalConfigEventArgs.cs
- BitmapData.cs
- UseLicense.cs
- DefaultShape.cs
- ConfigurationCollectionAttribute.cs
- EntityUtil.cs
- PeerIPHelper.cs
- DataTemplate.cs
- Descriptor.cs
- SQLMembershipProvider.cs
- MachineKeySection.cs
- BoundsDrawingContextWalker.cs
- ValidationHelper.cs
- WebSysDisplayNameAttribute.cs
- MissingManifestResourceException.cs
- CodeGeneratorOptions.cs