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
- TemplateManager.cs
- TraceInternal.cs
- ArrayWithOffset.cs
- OletxCommittableTransaction.cs
- FrameworkRichTextComposition.cs
- AssemblyBuilder.cs
- ElementMarkupObject.cs
- SettingsPropertyIsReadOnlyException.cs
- TextRangeSerialization.cs
- CounterCreationData.cs
- SingleConverter.cs
- Bezier.cs
- WebPartsPersonalization.cs
- AlignmentXValidation.cs
- AbstractExpressions.cs
- ServicePointManager.cs
- ComplexType.cs
- DataGridLinkButton.cs
- Accessors.cs
- Avt.cs
- HttpListenerRequest.cs
- DBProviderConfigurationHandler.cs
- XmlSchemaSimpleType.cs
- CqlGenerator.cs
- StrongName.cs
- NodeFunctions.cs
- PkcsMisc.cs
- ByteStack.cs
- DurableInstanceContextProvider.cs
- StyleTypedPropertyAttribute.cs
- AttributeAction.cs
- ValuePatternIdentifiers.cs
- BindingOperations.cs
- Exception.cs
- GridSplitter.cs
- DataGridCaption.cs
- UrlMappingsSection.cs
- StrokeNode.cs
- RegistrySecurity.cs
- StoreItemCollection.Loader.cs
- counter.cs
- EncodingInfo.cs
- ApplicationGesture.cs
- MenuItemAutomationPeer.cs
- SaveFileDialog.cs
- Bitmap.cs
- CommonDialog.cs
- TextWriterEngine.cs
- MatrixAnimationUsingKeyFrames.cs
- UrlMappingCollection.cs
- DocumentApplicationJournalEntry.cs
- Triangle.cs
- ComAdminInterfaces.cs
- ConstantExpression.cs
- remotingproxy.cs
- altserialization.cs
- RegexMatch.cs
- ColumnMapVisitor.cs
- AssemblyBuilderData.cs
- WindowsEditBox.cs
- PageVisual.cs
- LineServicesRun.cs
- MissingFieldException.cs
- RoleGroupCollection.cs
- AssemblyLoader.cs
- XmlNodeReader.cs
- Crc32.cs
- NamedServiceModelExtensionCollectionElement.cs
- Symbol.cs
- ScalarOps.cs
- LockedAssemblyCache.cs
- LexicalChunk.cs
- ObfuscateAssemblyAttribute.cs
- InfocardExtendedInformationCollection.cs
- TagMapCollection.cs
- CompilerLocalReference.cs
- BamlTreeNode.cs
- CodeExporter.cs
- SendMailErrorEventArgs.cs
- LassoSelectionBehavior.cs
- BaseTreeIterator.cs
- SchemaImporterExtension.cs
- Line.cs
- ContentPropertyAttribute.cs
- XmlLanguageConverter.cs
- UntrustedRecipientException.cs
- SettingsAttributes.cs
- CompileXomlTask.cs
- ECDiffieHellmanPublicKey.cs
- DataGridViewCellMouseEventArgs.cs
- EntityCommandDefinition.cs
- HttpResponseHeader.cs
- Style.cs
- ThicknessConverter.cs
- RegexNode.cs
- SQLConvert.cs
- TextSelection.cs
- SingleAnimationUsingKeyFrames.cs
- CommentAction.cs
- MsmqAppDomainProtocolHandler.cs