ProfileProvider.DeleteProfiles メソッド

定義

データ ソースからプロファイルのプロパティと情報を削除します。

オーバーロード

DeleteProfiles(String[])

派生クラスでオーバーライドされた場合、指定されたユーザー名のリストと一致するプロファイルに関するプロファイル プロパティと情報を削除します。

DeleteProfiles(ProfileInfoCollection)

派生クラスでオーバーライドされた場合、リストで指定されたプロファイルのプロパティと情報を削除します。

DeleteProfiles(String[])

派生クラスでオーバーライドされた場合、指定されたユーザー名のリストと一致するプロファイルに関するプロファイル プロパティと情報を削除します。

public:
 abstract int DeleteProfiles(cli::array <System::String ^> ^ usernames);
public abstract int DeleteProfiles (string[] usernames);
abstract member DeleteProfiles : string[] -> int
Public MustOverride Function DeleteProfiles (usernames As String()) As Integer

パラメーター

usernames
String[]

削除対象のプロファイルに関するユーザー名の文字列配列。

戻り値

データ ソースから削除されたプロファイルの数。

次のコード例は、 メソッドの実装のメソッド シグネチャを DeleteProfiles 示しています。 完全 ProfileProvider な実装の例については、「 方法: プロファイル プロバイダーの例をビルドして実行する」を参照してください。

public override int DeleteProfiles(string[] usernames)
{
    return 0;
}
Public Overrides Function DeleteProfiles(ByVal usernames As String()) As Integer
  Return 0
End Function

注釈

メソッドは DeleteProfiles 、 パラメーターで指定されたプロファイルを usernames 削除します。 構成ファイルで指定された applicationName のデータのみが削除されます。

こちらもご覧ください

適用対象

DeleteProfiles(ProfileInfoCollection)

派生クラスでオーバーライドされた場合、リストで指定されたプロファイルのプロパティと情報を削除します。

public:
 abstract int DeleteProfiles(System::Web::Profile::ProfileInfoCollection ^ profiles);
public abstract int DeleteProfiles (System.Web.Profile.ProfileInfoCollection profiles);
abstract member DeleteProfiles : System.Web.Profile.ProfileInfoCollection -> int
Public MustOverride Function DeleteProfiles (profiles As ProfileInfoCollection) As Integer

パラメーター

profiles
ProfileInfoCollection

削除対象のプロファイルに関する情報の ProfileInfoCollection

戻り値

データ ソースから削除されたプロファイルの数。

次のコード例は、 メソッドの実装のメソッド シグネチャを DeleteProfiles 示しています。 完全 ProfileProvider な実装の例については、「 方法: プロファイル プロバイダーの例をビルドして実行する」を参照してください。

public override int DeleteProfiles(ProfileInfoCollection profiles)
{
    return 0;
}
Public Overrides Function DeleteProfiles(ByVal profiles As ProfileInfoCollection) As Integer
  Return 0
End Function

注釈

メソッドは DeleteProfiles 、 パラメーターで指定されたプロファイルを profiles 削除します。 構成ファイルで指定された applicationName のデータのみが削除されます。

派生クラスでこのメソッドを実装する場合は、指定ProfileInfoCollectionされた 内の各ProfileInfoオブジェクトの値と プロパティをUserName使用applicationNameして、データ ソースから削除するプロファイルを決定できます。

こちらもご覧ください

適用対象