ProfileSection.Inherits 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
에서 파생된 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
속성 값
유효한 형식 참조 또는 빈 문자열("")입니다. 기본값은 빈 문자열입니다.
- 특성
예제
다음 코드 예제에서는 속성을 사용 하는 방법을 보여 있습니다 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 지정된 정보를 사용하여 파생되는 ProfileBase클래스를 ProfileCommon생성합니다. 이 클래스에서 제공하는 정보를 사용자 지정하려면 속성을 파생ProfileBase된 형식의 이름으로 설정할 Inherits 수 있으며 컴파일 시스템에서 이 사용자 지정 형식을 기본 클래스ProfileCommon로 사용합니다.
메모
속성에 형식 참조를 Inherits 제공하는 경우 요소로 property 정의되지 않은 사용자 지정 형식의 속성을 정의할 수 있습니다.
ASP.NET 2.0에 추가된 프로필 기능에 대한 자세한 내용은 ASP.NET 프로필 속성 개요를 참조하세요.