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
- FormsIdentity.cs
- HtmlInputControl.cs
- Section.cs
- PointLight.cs
- ReadingWritingEntityEventArgs.cs
- DataListDesigner.cs
- ApplicationFileCodeDomTreeGenerator.cs
- EFTableProvider.cs
- SmtpAuthenticationManager.cs
- DataTableCollection.cs
- ConfigXmlCDataSection.cs
- IndexingContentUnit.cs
- UniqueConstraint.cs
- XPathQilFactory.cs
- XmlName.cs
- FormViewInsertEventArgs.cs
- FileDialogCustomPlacesCollection.cs
- Transform3D.cs
- XmlFormatExtensionAttribute.cs
- MemberListBinding.cs
- HttpProfileGroupBase.cs
- UTF8Encoding.cs
- ForceCopyBuildProvider.cs
- DataGridViewCheckBoxColumn.cs
- StringWriter.cs
- ConnectivityStatus.cs
- Int32EqualityComparer.cs
- ErrorRuntimeConfig.cs
- ActionItem.cs
- XamlDesignerSerializationManager.cs
- FormsAuthenticationUser.cs
- EmulateRecognizeCompletedEventArgs.cs
- InvalidProgramException.cs
- Viewport3DVisual.cs
- FontStyle.cs
- TabItemWrapperAutomationPeer.cs
- EmptyEnumerable.cs
- DurableRuntimeValidator.cs
- XsltQilFactory.cs
- ParameterModifier.cs
- ResolveNameEventArgs.cs
- FieldTemplateFactory.cs
- SQLResource.cs
- COM2PropertyDescriptor.cs
- Properties.cs
- ApplicationInfo.cs
- Button.cs
- UInt64Converter.cs
- DecimalKeyFrameCollection.cs
- WebPartConnectVerb.cs
- HtmlSelect.cs
- HyperLinkField.cs
- XsltConvert.cs
- SetStateDesigner.cs
- SymDocumentType.cs
- SessionParameter.cs
- DataServiceQueryOfT.cs
- prompt.cs
- basecomparevalidator.cs
- HwndHostAutomationPeer.cs
- hwndwrapper.cs
- SqlInternalConnectionTds.cs
- AdRotatorDesigner.cs
- IPPacketInformation.cs
- SpeakCompletedEventArgs.cs
- EncryptedPackageFilter.cs
- Mutex.cs
- DbConnectionOptions.cs
- ButtonFieldBase.cs
- DiscoveryViaBehavior.cs
- DuplicateWaitObjectException.cs
- ViewBox.cs
- CheckBoxStandardAdapter.cs
- RotateTransform3D.cs
- WindowInteractionStateTracker.cs
- SecurityIdentifierElement.cs
- HttpRequestCacheValidator.cs
- DeriveBytes.cs
- ColorMap.cs
- SqlCaseSimplifier.cs
- SettingsProperty.cs
- CookieHandler.cs
- Label.cs
- WsatStrings.cs
- MembershipSection.cs
- TextRange.cs
- BrowserDefinition.cs
- BindingExpressionBase.cs
- DataControlButton.cs
- WebConfigurationManager.cs
- Transaction.cs
- CompilationLock.cs
- FormViewRow.cs
- Identity.cs
- Int16Converter.cs
- MailAddressParser.cs
- FirewallWrapper.cs
- ColorTransformHelper.cs
- XmlJsonReader.cs
- XmlDataCollection.cs