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
- DirectionalLight.cs
- BamlLocalizer.cs
- TemplateBindingExpressionConverter.cs
- NullExtension.cs
- WebPartConnectionsConnectVerb.cs
- ServiceOperation.cs
- LockedAssemblyCache.cs
- AQNBuilder.cs
- OrthographicCamera.cs
- CompositionCommandSet.cs
- RepeaterCommandEventArgs.cs
- Types.cs
- SafeHandles.cs
- XmlTextWriter.cs
- XPathDocument.cs
- FileVersion.cs
- MatrixCamera.cs
- SolidColorBrush.cs
- Parallel.cs
- SqlUtil.cs
- RoleServiceManager.cs
- X509CertificateTokenFactoryCredential.cs
- BookmarkResumptionRecord.cs
- Int32.cs
- TraceFilter.cs
- EntityContainer.cs
- WebHttpBindingElement.cs
- ContentType.cs
- ResourceDisplayNameAttribute.cs
- _ConnectOverlappedAsyncResult.cs
- TypeLoader.cs
- TextEditorTables.cs
- ToolBarButtonClickEvent.cs
- RenderingEventArgs.cs
- ServiceNameCollection.cs
- FileDataSourceCache.cs
- BamlTreeMap.cs
- GAC.cs
- EmptyCollection.cs
- CommonProperties.cs
- SerializeAbsoluteContext.cs
- MsmqInputSessionChannel.cs
- LineUtil.cs
- SafeHandles.cs
- WebPartsPersonalization.cs
- ResponseBodyWriter.cs
- CodeTypeReferenceExpression.cs
- SafeNativeMethods.cs
- NullRuntimeConfig.cs
- DockingAttribute.cs
- ResourceDisplayNameAttribute.cs
- XmlSchemaComplexType.cs
- AnnouncementInnerClient11.cs
- HandlerMappingMemo.cs
- ValueQuery.cs
- AnimationTimeline.cs
- UnicastIPAddressInformationCollection.cs
- PointAnimationClockResource.cs
- ToolStripItemClickedEventArgs.cs
- KeyValueInternalCollection.cs
- ManagementObjectCollection.cs
- ContourSegment.cs
- RelationHandler.cs
- AnnotationComponentChooser.cs
- ThreadAttributes.cs
- SizeValueSerializer.cs
- ParagraphResult.cs
- SizeAnimationBase.cs
- ControlType.cs
- PersonalizationProviderCollection.cs
- ShimAsPublicXamlType.cs
- MasterPageCodeDomTreeGenerator.cs
- TextDataBindingHandler.cs
- VectorConverter.cs
- ModifiableIteratorCollection.cs
- ToolBarButtonClickEvent.cs
- SimpleBitVector32.cs
- VarInfo.cs
- WrappedDispatcherException.cs
- XPathDocumentBuilder.cs
- XPathNodeHelper.cs
- HttpServerChannel.cs
- _ProxyChain.cs
- selecteditemcollection.cs
- LicenseContext.cs
- ClientRolePrincipal.cs
- VersionedStreamOwner.cs
- MultiBinding.cs
- JobDuplex.cs
- WebPartTransformerCollection.cs
- ToolStripComboBox.cs
- GridViewRowPresenter.cs
- ReadWriteObjectLock.cs
- MatrixAnimationUsingKeyFrames.cs
- WindowsGraphics.cs
- IISUnsafeMethods.cs
- TextBoxRenderer.cs
- OperandQuery.cs
- DrawingVisual.cs
- MultiTouchSystemGestureLogic.cs