Share via


ProfileSection.Inherits 속성

정의

ProfileBase에서 파생된 사용자 지정 형식의 형식 참조를 가져오거나 설정합니다.

public:
 property System::String ^ Inherits { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("inherits", DefaultValue="")]
public string Inherits { get; set; }
[<System.Configuration.ConfigurationProperty("inherits", DefaultValue="")>]
member this.Inherits : string with get, set
Public Property Inherits As String

속성 값

String

올바른 형식 참조 또는 빈 문자열("")입니다. 기본값은 빈 문자열입니다.

특성

예제

다음 코드 예제에서는 Inherits 속성을 사용하는 방법을 보여 줍니다. 이 코드 예제는에 대해 제공 된 큰 예제의 일부는 ProfileSection 클래스입니다.


// Get the current Inherits property value.
Console.WriteLine(
    "Current Inherits value: '{0}'", profileSection.Inherits);

// Set the Inherits property to
// "CustomProfiles.MyCustomProfile, CustomProfiles.dll".
profileSection.Inherits = "CustomProfiles.MyCustomProfile, CustomProfiles.dll";

' Get the current Inherits property value.
Console.WriteLine( _
    "Current Inherits value: '{0}'", profileSection.Inherits)

' Set the Inherits property to
' "CustomProfiles.MyCustomProfile, CustomProfiles.dll".
profileSection.Inherits = "CustomProfiles.MyCustomProfile, CustomProfiles.dll"

설명

ASP.NET 컴파일 시스템은 런타임 시에 지정 된 정보를 사용 합니다 profile 이라는 클래스를 생성 하는 구성의 섹션 ProfileCommon에서 파생 된 ProfileBase합니다. 이 클래스를 제공 하는 정보를 사용자 지정 하려면 설정할 수 있습니다 합니다 Inherits 속성에서 파생 되는 만든 형식 이름으로 ProfileBase, 컴파일 시스템은이 사용자 지정 형식에 대 한 기본 클래스로 사용 및 ProfileCommon합니다.

참고

에 대 한 형식 참조를 제공 하는 경우는 Inherits 속성을 사용 하 여 정의 되지 않은 사용자 지정 형식에서 속성을 정의할 수는 property 요소입니다.

ASP.NET 2.0에 추가된 프로필 기능에 대한 자세한 내용은 ASP.NET 프로필 속성 개요를 참조하세요.

적용 대상

추가 정보