Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ReferenceConverter.cs
- DataChangedEventManager.cs
- RegularExpressionValidator.cs
- DataGridTableCollection.cs
- DateTimeFormatInfoScanner.cs
- securestring.cs
- ManagedFilter.cs
- DelimitedListTraceListener.cs
- ImageMapEventArgs.cs
- GridViewCellAutomationPeer.cs
- EmptyEnumerator.cs
- GridViewColumnHeaderAutomationPeer.cs
- TreeNodeCollection.cs
- StrokeNodeData.cs
- DateTimeConverter.cs
- Encoder.cs
- AutomationElementCollection.cs
- MetaDataInfo.cs
- QilPatternVisitor.cs
- SHA1CryptoServiceProvider.cs
- DataControlFieldCollection.cs
- QilStrConcatenator.cs
- Membership.cs
- ExpressionSelection.cs
- TypedTableBase.cs
- SqlError.cs
- CopyAction.cs
- SelectionWordBreaker.cs
- AttachedPropertyBrowsableAttribute.cs
- X509Utils.cs
- HtmlEncodedRawTextWriter.cs
- graph.cs
- TypeResolvingOptions.cs
- CellQuery.cs
- WindowsListViewItemCheckBox.cs
- UInt16Storage.cs
- ObjectStateFormatter.cs
- Regex.cs
- XmlAtomicValue.cs
- NumericPagerField.cs
- WorkflowInlining.cs
- TextRangeEdit.cs
- HtmlElement.cs
- Task.cs
- DataListItemCollection.cs
- DesigntimeLicenseContext.cs
- DataBindingHandlerAttribute.cs
- BufferModeSettings.cs
- ContractsBCL.cs
- StateBag.cs
- WindowsRegion.cs
- CaseInsensitiveHashCodeProvider.cs
- _ProxyChain.cs
- EnumerableRowCollectionExtensions.cs
- Connector.xaml.cs
- LoginCancelEventArgs.cs
- ZipIOBlockManager.cs
- MultilineStringConverter.cs
- counter.cs
- InkSerializer.cs
- TreeNodeStyle.cs
- HttpFileCollection.cs
- InteropTrackingRecord.cs
- IFlowDocumentViewer.cs
- MobileComponentEditorPage.cs
- CompositeFontFamily.cs
- FileLevelControlBuilderAttribute.cs
- TableHeaderCell.cs
- SqlFactory.cs
- keycontainerpermission.cs
- RefreshEventArgs.cs
- ProcessInfo.cs
- RowToFieldTransformer.cs
- MimePart.cs
- DBSqlParser.cs
- MLangCodePageEncoding.cs
- StrokeNodeData.cs
- HttpProcessUtility.cs
- EdmTypeAttribute.cs
- Math.cs
- EntitySet.cs
- TextEditorSelection.cs
- TemplateBindingExtensionConverter.cs
- PropertyStore.cs
- EnumBuilder.cs
- ConfigErrorGlyph.cs
- LineSegment.cs
- GlyphElement.cs
- PerformanceCountersElement.cs
- QueryParameter.cs
- xmlfixedPageInfo.cs
- PopupRootAutomationPeer.cs
- StringAnimationBase.cs
- PresentationAppDomainManager.cs
- WsrmTraceRecord.cs
- KeyNotFoundException.cs
- AssemblyAttributesGoHere.cs
- COM2ExtendedBrowsingHandler.cs
- BindingNavigator.cs
- InputReport.cs