다음을 통해 공유


ProfileSettings.Name 속성

정의

개체의 ProfileSettings 이름을 가져오거나 설정합니다.

public:
 property System::String ^ Name { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("name", DefaultValue="", IsKey=true, IsRequired=true)]
[System.Configuration.StringValidator(MinLength=1)]
public string Name { get; set; }
[<System.Configuration.ConfigurationProperty("name", DefaultValue="", IsKey=true, IsRequired=true)>]
[<System.Configuration.StringValidator(MinLength=1)>]
member this.Name : string with get, set
Public Property Name As String

속성 값

개체의 ProfileSettings 이름입니다. 기본값은 빈 문자열("")입니다.

특성

예제

다음 코드 예제에서는 속성을 사용 하는 방법을 보여 있습니다 Name . 이 코드 예제는 클래스에 제공된 더 큰 예제의 HealthMonitoringSection 일부입니다.

profileSetting.Name = "Custom";
profileSetting.Name = "Custom"

설명

고유한 이름이 필요합니다. 이름이 중복되면 구성 섹션이 저장될 때 데이터가 손실될 수 있습니다.

적용 대상

추가 정보