Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. //------------------------------------------------------------------------------ //// 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SqlConnectionFactory.cs
- ExpressionBindingCollection.cs
- DataFormats.cs
- PageStatePersister.cs
- ExpressionEditorSheet.cs
- FragmentNavigationEventArgs.cs
- TextServicesHost.cs
- CompilationUtil.cs
- SignatureConfirmations.cs
- WebPartManager.cs
- MenuItemBindingCollection.cs
- ListBoxItemAutomationPeer.cs
- RemoteWebConfigurationHostStream.cs
- ByteStack.cs
- ResourceSetExpression.cs
- TextMarkerSource.cs
- TriggerBase.cs
- TargetControlTypeCache.cs
- Switch.cs
- HttpListenerPrefixCollection.cs
- ShimAsPublicXamlType.cs
- TargetControlTypeAttribute.cs
- InvalidProgramException.cs
- RegexStringValidatorAttribute.cs
- TransformPattern.cs
- RotateTransform.cs
- OleDbDataReader.cs
- AsymmetricSignatureFormatter.cs
- JsonDeserializer.cs
- PeerPresenceInfo.cs
- StrongNameIdentityPermission.cs
- ListViewTableCell.cs
- MissingMethodException.cs
- DbConnectionStringBuilder.cs
- PersonalizationProviderHelper.cs
- RowTypeElement.cs
- SpotLight.cs
- ErrorHandlingReceiver.cs
- SqlUdtInfo.cs
- _NetRes.cs
- DataBindEngine.cs
- PaperSource.cs
- NetworkAddressChange.cs
- OperatorExpressions.cs
- DbProviderFactories.cs
- SqlMethodCallConverter.cs
- Rotation3D.cs
- TypeProvider.cs
- BrowserDefinition.cs
- SkewTransform.cs
- GAC.cs
- StorageMappingItemLoader.cs
- ToolStripControlHost.cs
- AnnotationObservableCollection.cs
- MediaElement.cs
- ExpandoObject.cs
- Stackframe.cs
- TcpAppDomainProtocolHandler.cs
- PointAnimationClockResource.cs
- AssociationType.cs
- DataGridViewIntLinkedList.cs
- TableLayoutPanelCodeDomSerializer.cs
- WebPartCatalogAddVerb.cs
- StatusBar.cs
- ContextMenuStrip.cs
- RayHitTestParameters.cs
- AutoCompleteStringCollection.cs
- ProtocolElementCollection.cs
- X509CertificateRecipientServiceCredential.cs
- CalendarButton.cs
- SecurityHelper.cs
- Subtree.cs
- ApplicationActivator.cs
- HtmlTableRowCollection.cs
- WorkflowMarkupSerializationProvider.cs
- CheckBoxStandardAdapter.cs
- XmlDictionary.cs
- KeyValuePairs.cs
- Polyline.cs
- ScriptReference.cs
- HiddenField.cs
- QuaternionIndependentAnimationStorage.cs
- Keywords.cs
- FormViewPageEventArgs.cs
- Random.cs
- InvalidDataException.cs
- EventProxy.cs
- mda.cs
- OleDbReferenceCollection.cs
- Marshal.cs
- TypeBrowser.xaml.cs
- FrameworkElement.cs
- ConfigurationManagerHelper.cs
- WindowsAuthenticationModule.cs
- listitem.cs
- MD5.cs
- ChangeNode.cs
- CryptoStream.cs
- ReaderWriterLockWrapper.cs
- InstanceStore.cs