mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-19 01:31:17 -10:00
Adding reference source for System.Data System.Data.DataSetExtensions System.Data.Entity System.Data.Entity.Design System.Data.Linq System.Data.SqlXml System.ServiceModel System.ServiceModel.Activation System.ServiceModel.Activities System.ServiceModel.Channels System.ServiceModel.Discovery System.ServiceModel.Internals System.ServiceModel.Routing System.ServiceModel.WasHosting System.ServiceModel.Web System.Web System.Web.ApplicationServices System.Web.DynamicData System.Web.Entity System.Web.Entity.Design System.Web.Extensions System.Web.Mobile System.Web.Routing System.Web.Services System.Xml System.Xml.Linq
62 lines
1.8 KiB
C#
62 lines
1.8 KiB
C#
//------------------------------------------------------------------------------
|
|
// <copyright file="Attributes.cs" company="Microsoft">
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// </copyright>
|
|
//------------------------------------------------------------------------------
|
|
|
|
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);
|
|
}
|
|
}
|
|
}
|