411 lines
30 KiB
XML
411 lines
30 KiB
XML
|
<?xml version="1.0" encoding="utf-8"?>
|
|||
|
<Type Name="SqlProfileProvider" FullName="System.Web.Profile.SqlProfileProvider">
|
|||
|
<TypeSignature Language="C#" Value="public class SqlProfileProvider : System.Web.Profile.ProfileProvider" />
|
|||
|
<AssemblyInfo>
|
|||
|
<AssemblyName>System.Web</AssemblyName>
|
|||
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
|||
|
</AssemblyInfo>
|
|||
|
<Base>
|
|||
|
<BaseTypeName>System.Web.Profile.ProfileProvider</BaseTypeName>
|
|||
|
</Base>
|
|||
|
<Interfaces />
|
|||
|
<Docs>
|
|||
|
<since version=".NET 2.0" />
|
|||
|
<remarks>
|
|||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|||
|
<para>The ASP.NET profile is used to store and retrieve user settings in a data source such as a database. The user profile is accessed using the <see cref="P:System.Web.HttpContext.Profile" /> property of the current <see cref="T:System.Web.HttpContext" />. Profile information and property values are managed using a profile provider.</para>
|
|||
|
<para>The <see cref="T:System.Web.Profile.SqlProfileProvider" /> class is used by ASP.NET to store and retrieve profile settings for an ASP.NET application that is using a SQL Server database. To use a <see cref="T:System.Web.Profile.SqlProfileProvider" />, you must first create the SQL Server database used by the <see cref="T:System.Web.Profile.SqlProfileProvider" />. To create the database used by the <see cref="T:System.Web.Profile.SqlProfileProvider" />, run the aspnet_regsql.exe tool, which is found in the [drive:]\WINDOWS\Microsoft.NET\Framework\<paramref name="2.0versionNumber" /> folder, and specify the <system>-A p</system> option. The following command demonstrates how you might use the aspnet_regsql.exe executable:</para>
|
|||
|
<code>aspnet_regsql.exe -A p</code>
|
|||
|
<para>The example above does not specify a name for the database that is created, so the default name will be used. The default database name is Aspnetdb.</para>
|
|||
|
<para>The machine configuration contains a default <see cref="T:System.Web.Profile.SqlProfileProvider" /> instance named AspNetSqlProvider that connects to the SQL Server on the local machine. You can use this instance of the provider, or specify your own in the Web.config file for your ASP.NET application.</para>
|
|||
|
<block subset="none" type="note">
|
|||
|
<para>If the profile provider is configured with a connection string that uses integrated security, the process account of the ASP.NET application must have rights to connect to the SQL Server database.</para>
|
|||
|
</block>
|
|||
|
</remarks>
|
|||
|
<summary>
|
|||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|||
|
<para>Manages storage of profile information for an ASP.NET application in a SQL Server database.</para>
|
|||
|
</summary>
|
|||
|
</Docs>
|
|||
|
<Members>
|
|||
|
<Member MemberName=".ctor">
|
|||
|
<MemberSignature Language="C#" Value="public SqlProfileProvider ();" />
|
|||
|
<MemberType>Constructor</MemberType>
|
|||
|
<Parameters />
|
|||
|
<Docs>
|
|||
|
<since version=".NET 2.0" />
|
|||
|
<remarks>
|
|||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|||
|
<para>ASP.NET calls the <see cref="M:System.Web.Profile.SqlProfileProvider.#ctor" /> constructor to create an instance of the <see cref="T:System.Web.Profile.SqlProfileProvider" /> class using the values specified in the configuration file for the application. This constructor is not intended to be used from your code.</para>
|
|||
|
</remarks>
|
|||
|
<summary>
|
|||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|||
|
<para>Creates an instance of the <see cref="T:System.Web.Profile.SqlProfileProvider" /> class.</para>
|
|||
|
</summary>
|
|||
|
</Docs>
|
|||
|
<AssemblyInfo>
|
|||
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
|||
|
</AssemblyInfo>
|
|||
|
</Member>
|
|||
|
<Member MemberName="ApplicationName">
|
|||
|
<MemberSignature Language="C#" Value="public override string ApplicationName { set; get; }" />
|
|||
|
<MemberType>Property</MemberType>
|
|||
|
<ReturnValue>
|
|||
|
<ReturnType>System.String</ReturnType>
|
|||
|
</ReturnValue>
|
|||
|
<Docs>
|
|||
|
<value>To be added.</value>
|
|||
|
<since version=".NET 2.0" />
|
|||
|
<remarks>
|
|||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|||
|
<para>The <see cref="P:System.Web.Profile.SqlProfileProvider.ApplicationName" /> property is used by the <see cref="T:System.Web.Profile.SqlProfileProvider" /> to associate profile information with different applications. This enables multiple applications to use the same database to store user information without running into conflicts between duplicate users. Multiple ASP.NET applications can use the same user database by specifying the same value in the <see cref="P:System.Web.Profile.SqlProfileProvider.ApplicationName" /> property. The <see cref="P:System.Web.Profile.SqlProfileProvider.ApplicationName" /> property can be set programmatically, or it can be set declaratively in the configuration file for the Web application using the applicationName attribute.</para>
|
|||
|
<para>If a value is not specified for the applicationName attribute in the configuration file for the Web application, then the <see cref="P:System.Web.Hosting.HostingEnvironment.ApplicationVirtualPath" /> value is used for ASP.NET applications. For non-ASP.NET applications, the default value is the <see cref="P:System.Diagnostics.ProcessModule.ModuleName" /> value without the file extension.</para>
|
|||
|
<block subset="none" type="note">
|
|||
|
<para>Because a single default profile provider instance is used for all of the requests served by an <see cref="T:System.Web.HttpApplication" /> object, you can have multiple requests executing concurrently and attempting to set the <see cref="P:System.Web.Profile.SqlProfileProvider.ApplicationName" /> property value. The <see cref="P:System.Web.Profile.SqlProfileProvider.ApplicationName" /> property is not thread safe for multiple writes, and changing the <see cref="P:System.Web.Profile.SqlProfileProvider.ApplicationName" /> property value can result in unexpected behavior for multiple users of an application. It is recommended that you avoid writing code that allows users to set the <see cref="P:System.Web.Profile.SqlProfileProvider.ApplicationName" /> property unless you must. An example of an application where setting the <see cref="P:System.Web.Profile.SqlProfileProvider.ApplicationName" /> property may be required is an administrative application that manages profile data for multiple applications. Such an application should be a single-user application and not a Web application.</para>
|
|||
|
</block>
|
|||
|
</remarks>
|
|||
|
<summary>
|
|||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|||
|
<para>Gets or sets the name of the application for which to store and retrieve profile information.</para>
|
|||
|
</summary>
|
|||
|
</Docs>
|
|||
|
<AssemblyInfo>
|
|||
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
|||
|
</AssemblyInfo>
|
|||
|
</Member>
|
|||
|
<Member MemberName="DeleteInactiveProfiles">
|
|||
|
<MemberSignature Language="C#" Value="public override int DeleteInactiveProfiles (System.Web.Profile.ProfileAuthenticationOption authenticationOption, DateTime userInactiveSinceDate);" />
|
|||
|
<MemberType>Method</MemberType>
|
|||
|
<ReturnValue>
|
|||
|
<ReturnType>System.Int32</ReturnType>
|
|||
|
</ReturnValue>
|
|||
|
<Parameters>
|
|||
|
<Parameter Name="authenticationOption" Type="System.Web.Profile.ProfileAuthenticationOption" />
|
|||
|
<Parameter Name="userInactiveSinceDate" Type="System.DateTime" />
|
|||
|
</Parameters>
|
|||
|
<Docs>
|
|||
|
<since version=".NET 2.0" />
|
|||
|
<remarks>
|
|||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|||
|
<para>The <see cref="M:System.Web.Profile.SqlProfileProvider.DeleteInactiveProfiles(System.Web.Profile.ProfileAuthenticationOption,System.DateTime)" /> method is used to remove unused profile data from the data source for the application specified by the applicationName attribute in the configuration file. Use the <paramref name="authenticationOption" /> parameter to specify whether you want only anonymous profiles, only authenticated profiles, or all profiles to be searched. Of the searched profiles, any profile with a <see cref="P:System.Web.Profile.ProfileInfo.LastActivityDate" /> that occurs on or before the specified <paramref name="userInactiveSinceDate" /> parameter value is deleted.</para>
|
|||
|
<para>The database updates that are performed during the call to the <see cref="M:System.Web.Profile.SqlProfileProvider.DeleteInactiveProfiles(System.Web.Profile.ProfileAuthenticationOption,System.DateTime)" /> method are made within a transaction. If an error is encountered, the transaction is rolled back and no updates are performed.</para>
|
|||
|
</remarks>
|
|||
|
<summary>
|
|||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|||
|
<para>Deletes user profile data for profiles in which the last activity date occurred before the specified date and time.</para>
|
|||
|
</summary>
|
|||
|
<returns>
|
|||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|||
|
<para>The number of profiles deleted from the data source.</para>
|
|||
|
</returns>
|
|||
|
<param name="authenticationOption">
|
|||
|
<attribution license="cc4" from="Microsoft" modified="false" />One of the <see cref="T:System.Web.Profile.ProfileAuthenticationOption" /> values, specifying whether anonymous, authenticated, or both types of profiles are deleted.</param>
|
|||
|
<param name="userInactiveSinceDate">
|
|||
|
<attribution license="cc4" from="Microsoft" modified="false" />A <see cref="T:System.DateTime" /> that identifies which user profiles are considered inactive. If the <see cref="P:System.Web.Profile.ProfileInfo.LastActivityDate" /> of a user profile occurs on or before this date and time, the profile is considered inactive.</param>
|
|||
|
</Docs>
|
|||
|
<AssemblyInfo>
|
|||
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
|||
|
</AssemblyInfo>
|
|||
|
</Member>
|
|||
|
<Member MemberName="DeleteProfiles">
|
|||
|
<MemberSignature Language="C#" Value="public override int DeleteProfiles (string[] usernames);" />
|
|||
|
<MemberType>Method</MemberType>
|
|||
|
<ReturnValue>
|
|||
|
<ReturnType>System.Int32</ReturnType>
|
|||
|
</ReturnValue>
|
|||
|
<Parameters>
|
|||
|
<Parameter Name="usernames" Type="System.String[]" />
|
|||
|
</Parameters>
|
|||
|
<Docs>
|
|||
|
<since version=".NET 2.0" />
|
|||
|
<remarks>
|
|||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|||
|
<para>The <see cref="M:System.Web.Profile.SqlProfileProvider.DeleteProfiles(System.String[])" /> method deletes all profile information and properties for the specified profiles from the data source for the application specified by the applicationName attribute in the configuration file. The list of profiles to delete is specified as a string array of user names. If profile properties and information exist in the data source for a user name in the <paramref name="usernames" /> parameter, they are deleted.</para>
|
|||
|
<para>The return value may differ from the length of the specified array of <paramref name="usernames" />. This indicates that some of the profiles in the specified array of <paramref name="usernames" /> were already deleted from the data store.</para>
|
|||
|
<para>The database updates that are performed during the call to the <see cref="M:System.Web.Profile.SqlProfileProvider.DeleteProfiles(System.String[])" /> method are made within a transaction. If an error is encountered, the transaction is rolled back and no updates are performed.</para>
|
|||
|
</remarks>
|
|||
|
<summary>
|
|||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|||
|
<para>Deletes profile properties and information from the data source for the supplied list of user names.</para>
|
|||
|
</summary>
|
|||
|
<returns>
|
|||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|||
|
<para>The number of profiles deleted from the data source.</para>
|
|||
|
</returns>
|
|||
|
<param name="usernames">
|
|||
|
<attribution license="cc4" from="Microsoft" modified="false" />A string array of user names for profiles to be deleted. </param>
|
|||
|
</Docs>
|
|||
|
<AssemblyInfo>
|
|||
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
|||
|
</AssemblyInfo>
|
|||
|
</Member>
|
|||
|
<Member MemberName="DeleteProfiles">
|
|||
|
<MemberSignature Language="C#" Value="public override int DeleteProfiles (System.Web.Profile.ProfileInfoCollection profiles);" />
|
|||
|
<MemberType>Method</MemberType>
|
|||
|
<ReturnValue>
|
|||
|
<ReturnType>System.Int32</ReturnType>
|
|||
|
</ReturnValue>
|
|||
|
<Parameters>
|
|||
|
<Parameter Name="profiles" Type="System.Web.Profile.ProfileInfoCollection" />
|
|||
|
</Parameters>
|
|||
|
<Docs>
|
|||
|
<since version=".NET 2.0" />
|
|||
|
<remarks>
|
|||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|||
|
<para>The <see cref="M:System.Web.Profile.SqlProfileProvider.DeleteProfiles(System.Web.Profile.ProfileInfoCollection)" /> method deletes all profile information and properties for the specified profiles from the data source for the application specified by the applicationName attribute in the configuration file. The list of profiles to delete is specified using a <see cref="T:System.Web.Profile.ProfileInfoCollection" /> that is passed as the <paramref name="profiles" /> parameter. A <see cref="T:System.Web.Profile.ProfileInfoCollection" /> can be returned from the <see cref="M:System.Web.Profile.SqlProfileProvider.GetAllProfiles(System.Web.Profile.ProfileAuthenticationOption,System.Int32,System.Int32,System.Int32@)" />, <see cref="M:System.Web.Profile.SqlProfileProvider.GetAllInactiveProfiles(System.Web.Profile.ProfileAuthenticationOption,System.DateTime,System.Int32,System.Int32,System.Int32@)" />, <see cref="M:System.Web.Profile.SqlProfileProvider.FindProfilesByUserName(System.Web.Profile.ProfileAuthenticationOption,System.String,System.Int32,System.Int32,System.Int32@)" />, and <see cref="M:System.Web.Profile.SqlProfileProvider.FindInactiveProfilesByUserName(System.Web.Profile.ProfileAuthenticationOption,System.String,System.DateTime,System.Int32,System.Int32,System.Int32@)" /> methods.</para>
|
|||
|
<para>The return value may differ from the <see cref="P:System.Web.Profile.ProfileInfoCollection.Count" /> value for the supplied <see cref="T:System.Web.Profile.ProfileInfoCollection" />. This indicates that some of the profiles in the specified <see cref="T:System.Web.Profile.ProfileInfoCollection" /> were no longer found in the data store.</para>
|
|||
|
<para>The database updates that are performed during the call to the <see cref="M:System.Web.Profile.SqlProfileProvider.DeleteProfiles(System.Web.Profile.ProfileInfoCollection)" /> method are made within a transaction. If an error is encountered, the transaction is rolled back and no updates are performed.</para>
|
|||
|
</remarks>
|
|||
|
<summary>
|
|||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|||
|
<para>Deletes profile properties and information for the supplied list of profiles from the data source.</para>
|
|||
|
</summary>
|
|||
|
<returns>
|
|||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|||
|
<para>The number of profiles deleted from the data source.</para>
|
|||
|
</returns>
|
|||
|
<param name="profiles">
|
|||
|
<attribution license="cc4" from="Microsoft" modified="false" />A <see cref="T:System.Web.Profile.ProfileInfoCollection" /> that contains profile information for profiles to be deleted.</param>
|
|||
|
</Docs>
|
|||
|
<AssemblyInfo>
|
|||
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
|||
|
</AssemblyInfo>
|
|||
|
</Member>
|
|||
|
<Member MemberName="FindInactiveProfilesByUserName">
|
|||
|
<MemberSignature Language="C#" Value="public override System.Web.Profile.ProfileInfoCollection FindInactiveProfilesByUserName (System.Web.Profile.ProfileAuthenticationOption authenticationOption, string usernameToMatch, DateTime userInactiveSinceDate, int pageIndex, int pageSize, out int totalRecords);" />
|
|||
|
<MemberType>Method</MemberType>
|
|||
|
<ReturnValue>
|
|||
|
<ReturnType>System.Web.Profile.ProfileInfoCollection</ReturnType>
|
|||
|
</ReturnValue>
|
|||
|
<Parameters>
|
|||
|
<Parameter Name="authenticationOption" Type="System.Web.Profile.ProfileAuthenticationOption" />
|
|||
|
<Parameter Name="usernameToMatch" Type="System.String" />
|
|||
|
<Parameter Name="userInactiveSinceDate" Type="System.DateTime" />
|
|||
|
<Parameter Name="pageIndex" Type="System.Int32" />
|
|||
|
<Parameter Name="pageSize" Type="System.Int32" />
|
|||
|
<Parameter Name="totalRecords" Type="System.Int32&" RefType="out" />
|
|||
|
</Parameters>
|
|||
|
<Docs>
|
|||
|
<param name="authenticationOption">To be added.</param>
|
|||
|
<param name="usernameToMatch">To be added.</param>
|
|||
|
<param name="userInactiveSinceDate">To be added.</param>
|
|||
|
<param name="pageIndex">To be added.</param>
|
|||
|
<param name="pageSize">To be added.</param>
|
|||
|
<param name="totalRecords">To be added.</param>
|
|||
|
<summary>To be added.</summary>
|
|||
|
<returns>To be added.</returns>
|
|||
|
<remarks>To be added.</remarks>
|
|||
|
<since version=".NET 2.0" />
|
|||
|
</Docs>
|
|||
|
<AssemblyInfo>
|
|||
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
|||
|
</AssemblyInfo>
|
|||
|
</Member>
|
|||
|
<Member MemberName="FindProfilesByUserName">
|
|||
|
<MemberSignature Language="C#" Value="public override System.Web.Profile.ProfileInfoCollection FindProfilesByUserName (System.Web.Profile.ProfileAuthenticationOption authenticationOption, string usernameToMatch, int pageIndex, int pageSize, out int totalRecords);" />
|
|||
|
<MemberType>Method</MemberType>
|
|||
|
<ReturnValue>
|
|||
|
<ReturnType>System.Web.Profile.ProfileInfoCollection</ReturnType>
|
|||
|
</ReturnValue>
|
|||
|
<Parameters>
|
|||
|
<Parameter Name="authenticationOption" Type="System.Web.Profile.ProfileAuthenticationOption" />
|
|||
|
<Parameter Name="usernameToMatch" Type="System.String" />
|
|||
|
<Parameter Name="pageIndex" Type="System.Int32" />
|
|||
|
<Parameter Name="pageSize" Type="System.Int32" />
|
|||
|
<Parameter Name="totalRecords" Type="System.Int32&" RefType="out" />
|
|||
|
</Parameters>
|
|||
|
<Docs>
|
|||
|
<param name="authenticationOption">To be added.</param>
|
|||
|
<param name="usernameToMatch">To be added.</param>
|
|||
|
<param name="pageIndex">To be added.</param>
|
|||
|
<param name="pageSize">To be added.</param>
|
|||
|
<param name="totalRecords">To be added.</param>
|
|||
|
<summary>To be added.</summary>
|
|||
|
<returns>To be added.</returns>
|
|||
|
<remarks>To be added.</remarks>
|
|||
|
<since version=".NET 2.0" />
|
|||
|
</Docs>
|
|||
|
<AssemblyInfo>
|
|||
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
|||
|
</AssemblyInfo>
|
|||
|
</Member>
|
|||
|
<Member MemberName="GetAllInactiveProfiles">
|
|||
|
<MemberSignature Language="C#" Value="public override System.Web.Profile.ProfileInfoCollection GetAllInactiveProfiles (System.Web.Profile.ProfileAuthenticationOption authenticationOption, DateTime userInactiveSinceDate, int pageIndex, int pageSize, out int totalRecords);" />
|
|||
|
<MemberType>Method</MemberType>
|
|||
|
<ReturnValue>
|
|||
|
<ReturnType>System.Web.Profile.ProfileInfoCollection</ReturnType>
|
|||
|
</ReturnValue>
|
|||
|
<Parameters>
|
|||
|
<Parameter Name="authenticationOption" Type="System.Web.Profile.ProfileAuthenticationOption" />
|
|||
|
<Parameter Name="userInactiveSinceDate" Type="System.DateTime" />
|
|||
|
<Parameter Name="pageIndex" Type="System.Int32" />
|
|||
|
<Parameter Name="pageSize" Type="System.Int32" />
|
|||
|
<Parameter Name="totalRecords" Type="System.Int32&" RefType="out" />
|
|||
|
</Parameters>
|
|||
|
<Docs>
|
|||
|
<param name="authenticationOption">To be added.</param>
|
|||
|
<param name="userInactiveSinceDate">To be added.</param>
|
|||
|
<param name="pageIndex">To be added.</param>
|
|||
|
<param name="pageSize">To be added.</param>
|
|||
|
<param name="totalRecords">To be added.</param>
|
|||
|
<summary>To be added.</summary>
|
|||
|
<returns>To be added.</returns>
|
|||
|
<remarks>To be added.</remarks>
|
|||
|
<since version=".NET 2.0" />
|
|||
|
</Docs>
|
|||
|
<AssemblyInfo>
|
|||
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
|||
|
</AssemblyInfo>
|
|||
|
</Member>
|
|||
|
<Member MemberName="GetAllProfiles">
|
|||
|
<MemberSignature Language="C#" Value="public override System.Web.Profile.ProfileInfoCollection GetAllProfiles (System.Web.Profile.ProfileAuthenticationOption authenticationOption, int pageIndex, int pageSize, out int totalRecords);" />
|
|||
|
<MemberType>Method</MemberType>
|
|||
|
<ReturnValue>
|
|||
|
<ReturnType>System.Web.Profile.ProfileInfoCollection</ReturnType>
|
|||
|
</ReturnValue>
|
|||
|
<Parameters>
|
|||
|
<Parameter Name="authenticationOption" Type="System.Web.Profile.ProfileAuthenticationOption" />
|
|||
|
<Parameter Name="pageIndex" Type="System.Int32" />
|
|||
|
<Parameter Name="pageSize" Type="System.Int32" />
|
|||
|
<Parameter Name="totalRecords" Type="System.Int32&" RefType="out" />
|
|||
|
</Parameters>
|
|||
|
<Docs>
|
|||
|
<param name="authenticationOption">To be added.</param>
|
|||
|
<param name="pageIndex">To be added.</param>
|
|||
|
<param name="pageSize">To be added.</param>
|
|||
|
<param name="totalRecords">To be added.</param>
|
|||
|
<summary>To be added.</summary>
|
|||
|
<returns>To be added.</returns>
|
|||
|
<remarks>To be added.</remarks>
|
|||
|
<since version=".NET 2.0" />
|
|||
|
</Docs>
|
|||
|
<AssemblyInfo>
|
|||
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
|||
|
</AssemblyInfo>
|
|||
|
</Member>
|
|||
|
<Member MemberName="GetNumberOfInactiveProfiles">
|
|||
|
<MemberSignature Language="C#" Value="public override int GetNumberOfInactiveProfiles (System.Web.Profile.ProfileAuthenticationOption authenticationOption, DateTime userInactiveSinceDate);" />
|
|||
|
<MemberType>Method</MemberType>
|
|||
|
<ReturnValue>
|
|||
|
<ReturnType>System.Int32</ReturnType>
|
|||
|
</ReturnValue>
|
|||
|
<Parameters>
|
|||
|
<Parameter Name="authenticationOption" Type="System.Web.Profile.ProfileAuthenticationOption" />
|
|||
|
<Parameter Name="userInactiveSinceDate" Type="System.DateTime" />
|
|||
|
</Parameters>
|
|||
|
<Docs>
|
|||
|
<since version=".NET 2.0" />
|
|||
|
<remarks>
|
|||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|||
|
<para>The <see cref="M:System.Web.Profile.SqlProfileProvider.GetNumberOfInactiveProfiles(System.Web.Profile.ProfileAuthenticationOption,System.DateTime)" /> method is used to retrieve a count of all of the unused user profiles from the data source for the application specified by the applicationName attribute in the configuration file. Use the <paramref name="authenticationOption" /> parameter to specify whether you want only anonymous profiles, only authenticated profiles, or all profiles to be searched. Of the searched profiles, all profiles with a <see cref="P:System.Web.Profile.ProfileInfo.LastActivityDate" /> that occurs on or before the specified <paramref name="userInactiveSinceDate" /> parameter value are counted.</para>
|
|||
|
</remarks>
|
|||
|
<summary>
|
|||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|||
|
<para>Gets the number of profiles in the data source where the last activity date occurred on or before the specified <paramref name="userInactiveSinceDate" />.</para>
|
|||
|
</summary>
|
|||
|
<returns>
|
|||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|||
|
<para>The number of profiles in the data source for which the last activity date occurred before the specified date and time.</para>
|
|||
|
</returns>
|
|||
|
<param name="authenticationOption">
|
|||
|
<attribution license="cc4" from="Microsoft" modified="false" />One of the <see cref="T:System.Web.Profile.ProfileAuthenticationOption" /> values, specifying whether anonymous, authenticated, or both types of profiles are returned.</param>
|
|||
|
<param name="userInactiveSinceDate">
|
|||
|
<attribution license="cc4" from="Microsoft" modified="false" />A <see cref="T:System.DateTime" /> that identifies which user profiles are considered inactive. If the <see cref="P:System.Web.Profile.ProfileInfo.LastActivityDate" /> of a user profile occurs on or before this date and time, the profile is considered inactive.</param>
|
|||
|
</Docs>
|
|||
|
<AssemblyInfo>
|
|||
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
|||
|
</AssemblyInfo>
|
|||
|
</Member>
|
|||
|
<Member MemberName="GetPropertyValues">
|
|||
|
<MemberSignature Language="C#" Value="public override System.Configuration.SettingsPropertyValueCollection GetPropertyValues (System.Configuration.SettingsContext sc, System.Configuration.SettingsPropertyCollection properties);" />
|
|||
|
<MemberType>Method</MemberType>
|
|||
|
<ReturnValue>
|
|||
|
<ReturnType>System.Configuration.SettingsPropertyValueCollection</ReturnType>
|
|||
|
</ReturnValue>
|
|||
|
<Parameters>
|
|||
|
<Parameter Name="sc" Type="System.Configuration.SettingsContext" />
|
|||
|
<Parameter Name="properties" Type="System.Configuration.SettingsPropertyCollection" />
|
|||
|
</Parameters>
|
|||
|
<Docs>
|
|||
|
<since version=".NET 2.0" />
|
|||
|
<remarks>
|
|||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|||
|
<para>The <see cref="M:System.Web.Profile.SqlProfileProvider.GetPropertyValues(System.Configuration.SettingsContext,System.Configuration.SettingsPropertyCollection)" /> method is used by the <see cref="T:System.Web.Profile.ProfileBase" /> class to retrieve profile properties for the current request that are managed by the <see cref="T:System.Web.Profile.SqlProfileProvider" />. Property values are returned from the data source for the application specified by the applicationName attribute in the configuration file. Property values and additional property information are returned as a collection of <see cref="T:System.Configuration.SettingsPropertyValue" /> objects.</para>
|
|||
|
</remarks>
|
|||
|
<summary>
|
|||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|||
|
<para>Retrieves profile property information and values from a SQL Server profile database.</para>
|
|||
|
</summary>
|
|||
|
<returns>
|
|||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|||
|
<para>A <see cref="T:System.Configuration.SettingsPropertyValueCollection" /> containing profile property information and values.</para>
|
|||
|
</returns>
|
|||
|
<param name="sc">
|
|||
|
<attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Configuration.SettingsContext" /> that contains user profile information.</param>
|
|||
|
<param name="properties">
|
|||
|
<attribution license="cc4" from="Microsoft" modified="false" />A <see cref="T:System.Configuration.SettingsPropertyCollection" /> containing profile information for the properties to be retrieved.</param>
|
|||
|
</Docs>
|
|||
|
<AssemblyInfo>
|
|||
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
|||
|
</AssemblyInfo>
|
|||
|
</Member>
|
|||
|
<Member MemberName="Initialize">
|
|||
|
<MemberSignature Language="C#" Value="public override void Initialize (string name, System.Collections.Specialized.NameValueCollection config);" />
|
|||
|
<MemberType>Method</MemberType>
|
|||
|
<ReturnValue>
|
|||
|
<ReturnType>System.Void</ReturnType>
|
|||
|
</ReturnValue>
|
|||
|
<Parameters>
|
|||
|
<Parameter Name="name" Type="System.String" />
|
|||
|
<Parameter Name="config" Type="System.Collections.Specialized.NameValueCollection" />
|
|||
|
</Parameters>
|
|||
|
<Docs>
|
|||
|
<since version=".NET 2.0" />
|
|||
|
<remarks>
|
|||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|||
|
<para>ASP.NET uses this method to initialize the <see cref="T:System.Web.Profile.SqlProfileProvider" /> with the property values specified in the ASP.NET application configuration file (Web.config). This method is not intended to be used directly from your code.</para>
|
|||
|
</remarks>
|
|||
|
<summary>
|
|||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|||
|
<para>Initializes the SQL Server profile provider with the property values specified in the ASP.NET application's configuration file. This method is not intended to be used directly from your code.</para>
|
|||
|
</summary>
|
|||
|
<param name="name">
|
|||
|
<attribution license="cc4" from="Microsoft" modified="false" />The name of the <see cref="T:System.Web.Profile.SqlProfileProvider" /> instance to initialize. </param>
|
|||
|
<param name="config">
|
|||
|
<attribution license="cc4" from="Microsoft" modified="false" />A <see cref="T:System.Collections.Specialized.NameValueCollection" /> that contains the names and values of configuration options for the profile provider. </param>
|
|||
|
</Docs>
|
|||
|
<AssemblyInfo>
|
|||
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
|||
|
</AssemblyInfo>
|
|||
|
</Member>
|
|||
|
<Member MemberName="SetPropertyValues">
|
|||
|
<MemberSignature Language="C#" Value="public override void SetPropertyValues (System.Configuration.SettingsContext sc, System.Configuration.SettingsPropertyValueCollection properties);" />
|
|||
|
<MemberType>Method</MemberType>
|
|||
|
<ReturnValue>
|
|||
|
<ReturnType>System.Void</ReturnType>
|
|||
|
</ReturnValue>
|
|||
|
<Parameters>
|
|||
|
<Parameter Name="sc" Type="System.Configuration.SettingsContext" />
|
|||
|
<Parameter Name="properties" Type="System.Configuration.SettingsPropertyValueCollection" />
|
|||
|
</Parameters>
|
|||
|
<Docs>
|
|||
|
<since version=".NET 2.0" />
|
|||
|
<remarks>
|
|||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|||
|
<para>The <see cref="M:System.Web.Profile.SqlProfileProvider.SetPropertyValues(System.Configuration.SettingsContext,System.Configuration.SettingsPropertyValueCollection)" /> method is used by ASP.NET profile services to update the SQL Server profile database when property values are set for the current request. Property values are set at the data source for the application specified by the applicationName attribute in the configuration file. Profile property information and values to be updated by the <see cref="T:System.Web.Profile.SqlProfileProvider" /> are specified as a collection of <see cref="T:System.Configuration.SettingsPropertyValue" /> objects.</para>
|
|||
|
</remarks>
|
|||
|
<summary>
|
|||
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|||
|
<para>Updates the SQL Server profile database with the specified property values.</para>
|
|||
|
</summary>
|
|||
|
<param name="sc">
|
|||
|
<attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Configuration.SettingsContext" /> that contains user profile information.</param>
|
|||
|
<param name="properties">
|
|||
|
<attribution license="cc4" from="Microsoft" modified="false" />A <see cref="T:System.Configuration.SettingsPropertyValueCollection" /> containing profile information and values for the properties to be updated.</param>
|
|||
|
</Docs>
|
|||
|
<AssemblyInfo>
|
|||
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
|||
|
</AssemblyInfo>
|
|||
|
</Member>
|
|||
|
</Members>
|
|||
|
</Type>
|