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
- UnsafeNativeMethodsTablet.cs
- EventSinkActivity.cs
- AnnotationResourceCollection.cs
- XmlProcessingInstruction.cs
- FixedSOMLineCollection.cs
- ProcessThread.cs
- DesignerSerializationManager.cs
- PartManifestEntry.cs
- Blend.cs
- IdentifierService.cs
- HMAC.cs
- InternalsVisibleToAttribute.cs
- DataSourceCacheDurationConverter.cs
- PartialList.cs
- XmlText.cs
- PointConverter.cs
- Stacktrace.cs
- BCLDebug.cs
- MethodSignatureGenerator.cs
- DynamicExpression.cs
- DbParameterCollectionHelper.cs
- SpStreamWrapper.cs
- ActivityBindForm.Designer.cs
- InputMethod.cs
- User.cs
- ScaleTransform.cs
- AdornerPresentationContext.cs
- LabelInfo.cs
- SweepDirectionValidation.cs
- NonceCache.cs
- URL.cs
- SqlDataSourceSelectingEventArgs.cs
- SQLInt16Storage.cs
- XmlReflectionMember.cs
- XPathCompileException.cs
- CodeDOMUtility.cs
- XmlSortKey.cs
- InteropTrackingRecord.cs
- DeferredSelectedIndexReference.cs
- HScrollProperties.cs
- HashMembershipCondition.cs
- TreeNodeMouseHoverEvent.cs
- OracleInfoMessageEventArgs.cs
- BamlReader.cs
- HttpModuleAction.cs
- Point.cs
- ConnectionPoint.cs
- SimpleBitVector32.cs
- HtmlInputCheckBox.cs
- StrokeFIndices.cs
- ViewStateModeByIdAttribute.cs
- CommandHelpers.cs
- HttpHandlerAction.cs
- SuppressIldasmAttribute.cs
- TextRangeEditLists.cs
- MessageSecurityProtocolFactory.cs
- xml.cs
- PrtCap_Public.cs
- PriorityChain.cs
- DateTimeSerializationSection.cs
- ApplicationManager.cs
- CustomTypeDescriptor.cs
- _UncName.cs
- DataGridDetailsPresenter.cs
- LoaderAllocator.cs
- TaskFactory.cs
- ValuePattern.cs
- Send.cs
- TableRow.cs
- ProfileSettingsCollection.cs
- AuthenticatedStream.cs
- Privilege.cs
- CacheOutputQuery.cs
- DynamicILGenerator.cs
- TreeBuilder.cs
- ConfigPathUtility.cs
- RoutedEventArgs.cs
- FrameworkElementFactoryMarkupObject.cs
- WebPartUtil.cs
- SizeFConverter.cs
- TextFormatter.cs
- SqlAliasesReferenced.cs
- EndpointDiscoveryElement.cs
- ViewSimplifier.cs
- DoubleLinkList.cs
- DataGridColumnReorderingEventArgs.cs
- printdlgexmarshaler.cs
- ChannelEndpointElementCollection.cs
- ContextStaticAttribute.cs
- SqlUDTStorage.cs
- TagPrefixInfo.cs
- ButtonAutomationPeer.cs
- IntSecurity.cs
- ExecutionEngineException.cs
- ValidationSummary.cs
- Vector3DConverter.cs
- EditorZone.cs
- MimeWriter.cs
- XPathNodeList.cs
- SQlBooleanStorage.cs