a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
110 lines
5.1 KiB
XML
110 lines
5.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Type Name="ProfileProviderAttribute" FullName="System.Web.Profile.ProfileProviderAttribute">
|
|
<TypeSignature Language="C#" Value="public sealed class ProfileProviderAttribute : 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.ProfileProviderAttribute" /> class is used to identify the profile provider for a property of a custom profile implementation. 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 type for the user profile using the inherits attribute of the <format type="text/html"><a href="ccb9bf3a-a044-464d-b89b-5cb5a3d389dd">profile</a></format> configuration element in the Web.config file for an application, as shown in the following example.</para>
|
|
<code><configuration>
|
|
<connectionStrings>
|
|
<add name="SqlServices" connectionString=
|
|
"Data Source=localhost;Integrated Security=SSPI;Initial Catalog=aspnetdb;" />
|
|
</connectionStrings>
|
|
|
|
<system.web>
|
|
<authentication mode="Forms" >
|
|
<forms loginUrl="login.aspx"
|
|
name=".ASPXFORMSAUTH" />
|
|
</authentication>
|
|
|
|
<authorization>
|
|
<deny users="?" />
|
|
</authorization>
|
|
|
|
<profile inherits="Samples.AspNet.Profile.EmployeeProfile"
|
|
defaultProvider="SqlProvider">
|
|
<providers>
|
|
<clear />
|
|
<add
|
|
name="SqlProvider"
|
|
type="System.Web.Profile.SqlProfileProvider"
|
|
connectionStringName="SqlServices"
|
|
description="SQL Profile Provider for Sample"/>
|
|
<add
|
|
name="EmployeeInfoProvider"
|
|
type="System.Web.Profile.SqlProfileProvider"
|
|
connectionStringName="SqlServices"
|
|
description="SQL Profile Provider for Employee Info"/>
|
|
</providers>
|
|
|
|
<properties>
|
|
<add name="GarmentSize" />
|
|
</properties>
|
|
</profile>
|
|
</system.web>
|
|
</configuration></code>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Identifies the profile provider for a user-profile property.</para>
|
|
</summary>
|
|
</Docs>
|
|
<Members>
|
|
<Member MemberName=".ctor">
|
|
<MemberSignature Language="C#" Value="public ProfileProviderAttribute (string providerName);" />
|
|
<MemberType>Constructor</MemberType>
|
|
<Parameters>
|
|
<Parameter Name="providerName" Type="System.String" />
|
|
</Parameters>
|
|
<Docs>
|
|
<since version=".NET 2.0" />
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>The <see cref="T:System.Web.Profile.ProfileProviderAttribute" /> class is used to identify the profile provider for a property of a custom profile implementation. 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.ProfileProviderAttribute" /> class with the specified profile provider name.</para>
|
|
</summary>
|
|
<param name="providerName">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />The name of the profile provider for the property.</param>
|
|
</Docs>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
</Member>
|
|
<Member MemberName="ProviderName">
|
|
<MemberSignature Language="C#" Value="public string ProviderName { get; }" />
|
|
<MemberType>Property</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.String</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 the name of the profile provider for the user-profile property.</para>
|
|
</summary>
|
|
</Docs>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
</Member>
|
|
</Members>
|
|
</Type> |