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
- SerialPinChanges.cs
- TraceHandlerErrorFormatter.cs
- XPathArrayIterator.cs
- QueryOptionExpression.cs
- _CommandStream.cs
- CoreSwitches.cs
- ContainerUtilities.cs
- ApplicationSettingsBase.cs
- PassportAuthentication.cs
- X509ChainElement.cs
- SmiTypedGetterSetter.cs
- BatchParser.cs
- EncryptedPackageFilter.cs
- Closure.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- XmlHierarchicalEnumerable.cs
- HostedBindingBehavior.cs
- NativeMethods.cs
- ChangePassword.cs
- OutKeywords.cs
- MailMessage.cs
- TextRunCache.cs
- ViewSimplifier.cs
- PathFigureCollectionConverter.cs
- CodeAttributeArgumentCollection.cs
- MissingManifestResourceException.cs
- RoleManagerSection.cs
- ReflectionTypeLoadException.cs
- RangeValuePatternIdentifiers.cs
- HtmlShimManager.cs
- BinHexEncoder.cs
- PeerCollaborationPermission.cs
- SerialErrors.cs
- RadioButtonList.cs
- BehaviorDragDropEventArgs.cs
- CornerRadius.cs
- TaskHelper.cs
- UnknownBitmapDecoder.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- AttributeCollection.cs
- RegexStringValidator.cs
- ControlParameter.cs
- ValueQuery.cs
- StringConverter.cs
- ListBox.cs
- DoubleIndependentAnimationStorage.cs
- ImportStoreException.cs
- ClientConfigurationHost.cs
- HttpApplication.cs
- XDRSchema.cs
- SecurityUtils.cs
- AssemblyResourceLoader.cs
- HtmlInputRadioButton.cs
- ResourceBinder.cs
- HttpCachePolicyWrapper.cs
- Latin1Encoding.cs
- HtmlButton.cs
- SafeBitVector32.cs
- CallContext.cs
- TextProperties.cs
- StorageBasedPackageProperties.cs
- ConstrainedDataObject.cs
- metadatamappinghashervisitor.cs
- XmlSchemaAny.cs
- BaseValidator.cs
- BooleanFunctions.cs
- DateTimeSerializationSection.cs
- ZipIOCentralDirectoryBlock.cs
- CombinedGeometry.cs
- Size3D.cs
- ProxyWebPartConnectionCollection.cs
- WindowsFormsLinkLabel.cs
- BulletedList.cs
- TypeDelegator.cs
- MetadataItem.cs
- EmulateRecognizeCompletedEventArgs.cs
- WindowInteractionStateTracker.cs
- XmlMessageFormatter.cs
- SafeReadContext.cs
- OutputWindow.cs
- SqlTrackingService.cs
- BitVector32.cs
- Registry.cs
- StyleTypedPropertyAttribute.cs
- StreamGeometry.cs
- WindowsFormsLinkLabel.cs
- HighlightVisual.cs
- EmbeddedObject.cs
- TreeNodeConverter.cs
- MetadataSet.cs
- OutputCache.cs
- DelegateArgumentValue.cs
- MethodCallTranslator.cs
- BamlTreeNode.cs
- _WinHttpWebProxyDataBuilder.cs
- Transform3D.cs
- ProfilePropertySettings.cs
- SecurityTokenRequirement.cs
- WindowsTokenRoleProvider.cs
- MasterPage.cs