a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
139 lines
7.9 KiB
XML
139 lines
7.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Type Name="SettingsAllowAnonymousAttribute" FullName="System.Web.Profile.SettingsAllowAnonymousAttribute">
|
|
<TypeSignature Language="C#" Value="public sealed class SettingsAllowAnonymousAttribute : Attribute" />
|
|
<AssemblyInfo>
|
|
<AssemblyName>System.Web</AssemblyName>
|
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<Base>
|
|
<BaseTypeName>System.Attribute</BaseTypeName>
|
|
</Base>
|
|
<Interfaces />
|
|
<Attributes>
|
|
<Attribute>
|
|
<AttributeName>System.AttributeUsage(System.AttributeTargets.Property)</AttributeName>
|
|
</Attribute>
|
|
</Attributes>
|
|
<Docs>
|
|
<since version=".NET 2.0" />
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>The <see cref="T:System.Web.Profile.SettingsAllowAnonymousAttribute" /> class is used to identify whether a property of a custom profile implementation can be accessed if the user is an anonymous user. For information about enabling anonymous identification, see the documentation provided for the <format type="text/html"><a href="2bd927ef-9057-4703-9c55-4cfb6d7d0929">anonymousIdentification</a></format> configuration element.</para>
|
|
<para>If no <see cref="T:System.Web.Profile.SettingsAllowAnonymousAttribute" /> is specified for a profile property, anonymous access of the profile property is not allowed.</para>
|
|
<para>A custom profile implementation is a class that inherits from the <see cref="T:System.Web.Profile.ProfileBase" /> abstract class and defines properties for the user profile that are not specified in the <format type="text/html"><a href="ccb9bf3a-a044-464d-b89b-5cb5a3d389dd">profile</a></format> configuration element. You can specify a custom user-profile type in the application's Web.config file with the inherits attribute of the <format type="text/html"><a href="ccb9bf3a-a044-464d-b89b-5cb5a3d389dd">profile</a></format> configuration element as shown in the following example.</para>
|
|
<para><configuration></para>
|
|
<para> <connectionStrings></para>
|
|
<para> <add </para>
|
|
<para> name="SqlServices" </para>
|
|
<para> connectionString="Data Source=localhost;Integrated Security=SSPI;Initial Catalog=aspnetdb;" /></para>
|
|
<para> </connectionStrings></para>
|
|
<para />
|
|
<para> <system.web></para>
|
|
<para> <authentication mode="Forms" ></para>
|
|
<para> <forms </para>
|
|
<para> loginUrl="login.aspx"</para>
|
|
<para> name=".ASPXFORMSAUTH" /></para>
|
|
<para> </authentication></para>
|
|
<para />
|
|
<para> <authorization></para>
|
|
<para> <deny users="?" /></para>
|
|
<para> </authorization></para>
|
|
<para />
|
|
<para> <profile inherits="Samples.AspNet.Profile.EmployeeProfile"</para>
|
|
<para> defaultProvider="SqlProvider"></para>
|
|
<para> <providers></para>
|
|
<para> <clear /></para>
|
|
<para> <add</para>
|
|
<para> name="SqlProvider"</para>
|
|
<para> type="System.Web.Profile.SqlProfileProvider" </para>
|
|
<para> connectionStringName="SqlServices" </para>
|
|
<para> description="SQL Profile Provider for Sample"/> </para>
|
|
<para> <add</para>
|
|
<para> name="EmployeeInfoProvider"</para>
|
|
<para> type="System.Web.Profile.SqlProfileProvider" </para>
|
|
<para> connectionStringName="SqlServices" </para>
|
|
<para> description="SQL Profile Provider for Employee Info"/> </para>
|
|
<para> </providers></para>
|
|
<para />
|
|
<para> <properties></para>
|
|
<para> <add name="GarmentSize" /></para>
|
|
<para> </properties></para>
|
|
<para> </profile></para>
|
|
<para> </system.web></para>
|
|
<para></configuration></para>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Identifies whether a profile property can be set or accessed for an anonymous user.</para>
|
|
</summary>
|
|
</Docs>
|
|
<Members>
|
|
<Member MemberName=".ctor">
|
|
<MemberSignature Language="C#" Value="public SettingsAllowAnonymousAttribute (bool allow);" />
|
|
<MemberType>Constructor</MemberType>
|
|
<Parameters>
|
|
<Parameter Name="allow" Type="System.Boolean" />
|
|
</Parameters>
|
|
<Docs>
|
|
<since version=".NET 2.0" />
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>The <see cref="T:System.Web.Profile.SettingsAllowAnonymousAttribute" /> class is used to identify whether a property of a custom profile implementation can be accessed if the user is an anonymous user. For information about enabling anonymous identification, see the <format type="text/html"><a href="2bd927ef-9057-4703-9c55-4cfb6d7d0929">anonymousIdentification</a></format> configuration element.</para>
|
|
<para>If no <see cref="T:System.Web.Profile.SettingsAllowAnonymousAttribute" /> is specified for a profile property, anonymous access to the profile property is not allowed.</para>
|
|
<para>A custom profile implementation is a class that inherits from the <see cref="T:System.Web.Profile.ProfileBase" /> abstract class and defines properties for the user profile that are not specified in the <format type="text/html"><a href="ccb9bf3a-a044-464d-b89b-5cb5a3d389dd">profile</a></format> configuration element.</para>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Creates a new instance of the <see cref="T:System.Web.Profile.SettingsAllowAnonymousAttribute" /> class and specifies whether to allow anonymous access to the associated profile property.</para>
|
|
</summary>
|
|
<param name="allow">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />true if anonymous users can access the associated profile property; otherwise false.</param>
|
|
</Docs>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
</Member>
|
|
<Member MemberName="Allow">
|
|
<MemberSignature Language="C#" Value="public bool Allow { get; }" />
|
|
<MemberType>Property</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Boolean</ReturnType>
|
|
</ReturnValue>
|
|
<Docs>
|
|
<value>To be added.</value>
|
|
<remarks>To be added.</remarks>
|
|
<since version=".NET 2.0" />
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Gets a value indicating whether the associated property of a custom profile implementation can be accessed if the user is an anonymous user.</para>
|
|
</summary>
|
|
</Docs>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
</Member>
|
|
<Member MemberName="IsDefaultAttribute">
|
|
<MemberSignature Language="C#" Value="public override bool IsDefaultAttribute ();" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Boolean</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<remarks>To be added.</remarks>
|
|
<since version=".NET 2.0" />
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Gets a value indicating whether the <see cref="P:System.Web.Profile.SettingsAllowAnonymousAttribute.Allow" /> property is set to the default value.</para>
|
|
</summary>
|
|
<returns>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>true if the <see cref="P:System.Web.Profile.SettingsAllowAnonymousAttribute.Allow" /> property is set to the default value; otherwise false.</para>
|
|
</returns>
|
|
</Docs>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
</Member>
|
|
</Members>
|
|
</Type> |