다음을 통해 공유


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 구성에 지정 된 파일이 제거 됩니다.

파생된 클래스에서이 메서드를 구현 하는 경우 사용할 수 있습니다 합니다 applicationName 값 및 UserName 각각의 속성 ProfileInfo 제공 된 개체 ProfileInfoCollection 데이터 소스에서 삭제할 프로필을 확인 하려면.

추가 정보

적용 대상