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
- DataTableTypeConverter.cs
- InvariantComparer.cs
- ElementProxy.cs
- DBSchemaRow.cs
- ObjectConverter.cs
- ApplicationTrust.cs
- ConnectionManagementElement.cs
- UnsafeNativeMethodsTablet.cs
- ToolStripDropDownItem.cs
- ViewBox.cs
- ImportContext.cs
- DataGridViewColumnEventArgs.cs
- XPathBinder.cs
- UnsafeNativeMethodsPenimc.cs
- Propagator.Evaluator.cs
- CodeCatchClauseCollection.cs
- ResourceDescriptionAttribute.cs
- SchemaManager.cs
- TextSchema.cs
- ByteFacetDescriptionElement.cs
- Atom10FormatterFactory.cs
- BuildProvidersCompiler.cs
- TransformerInfoCollection.cs
- TraceLevelHelper.cs
- ProtocolsConfigurationEntry.cs
- AnnotationHighlightLayer.cs
- HGlobalSafeHandle.cs
- DataGridHeaderBorder.cs
- Margins.cs
- EntityDataSourceWrapper.cs
- TitleStyle.cs
- XmlAnyAttributeAttribute.cs
- ChangeProcessor.cs
- VirtualPathProvider.cs
- ConsoleKeyInfo.cs
- Size.cs
- SharedPersonalizationStateInfo.cs
- Underline.cs
- BufferedMessageWriter.cs
- HwndSourceParameters.cs
- TemplateParser.cs
- ClosableStream.cs
- BroadcastEventHelper.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- QilReplaceVisitor.cs
- WebPartConnectionsConnectVerb.cs
- ToolStripDesignerAvailabilityAttribute.cs
- OdbcConnectionOpen.cs
- ControlValuePropertyAttribute.cs
- AspNetSynchronizationContext.cs
- DataGridViewComboBoxColumn.cs
- OperatingSystem.cs
- SettingsPropertyValueCollection.cs
- XmlSchemaCompilationSettings.cs
- ToolStripAdornerWindowService.cs
- ExpressionBindingCollection.cs
- RTLAwareMessageBox.cs
- Control.cs
- ApplicationContext.cs
- ExchangeUtilities.cs
- DmlSqlGenerator.cs
- Visual.cs
- SafeLocalMemHandle.cs
- MsmqIntegrationChannelFactory.cs
- DefaultCompensation.cs
- Floater.cs
- WindowsRebar.cs
- RowParagraph.cs
- File.cs
- DeviceFilterEditorDialog.cs
- ResourceIDHelper.cs
- WebServiceEnumData.cs
- EnumerableWrapperWeakToStrong.cs
- EmptyStringExpandableObjectConverter.cs
- XmlNamedNodeMap.cs
- FormsAuthenticationUserCollection.cs
- LocalizableAttribute.cs
- Msec.cs
- GroupItemAutomationPeer.cs
- HttpCapabilitiesSectionHandler.cs
- GenericEnumerator.cs
- ReflectionHelper.cs
- WindowsEditBox.cs
- OleDbCommand.cs
- ButtonAutomationPeer.cs
- OleDbWrapper.cs
- DataGridViewCell.cs
- ArrangedElementCollection.cs
- XmlElementCollection.cs
- ExplicitDiscriminatorMap.cs
- ColumnHeader.cs
- SQLBytes.cs
- oledbconnectionstring.cs
- RepeatInfo.cs
- TextPattern.cs
- TextTreeRootNode.cs
- PartialTrustValidationBehavior.cs
- SafeRightsManagementQueryHandle.cs
- XmlSignificantWhitespace.cs
- DirectionalLight.cs