ResXDataNode.Comment 속성

정의

이 리소스와 관련된 임의의 설명을 가져오거나 설정합니다.

public:
 property System::String ^ Comment { System::String ^ get(); void set(System::String ^ value); };
public string Comment { get; set; }
member this.Comment : string with get, set
Public Property Comment As String

속성 값

주석을 나타내는 문자열입니다.

예제

클래스에 대한 예제를 ResXDataNode 참조하세요.

설명

주석이 리소스 항목에 할당되지 않은 경우 속성 값은 Comment 입니다 String.Empty.

개체를 Comment 인스턴스화하고, 속성을 로 설정하고 ResXResourceReader.UseResXDataNodestrue, 메서드를 호출 ResXResourceReader.GetEnumerator 하여 ResXResourceReader XML 리소스 파일의 항목을 열거하는 데 사용하는 개체를 검색 IDictionaryEnumerator 하여 기존 XML 리소스 파일에서 데이터 노드의 속성에 액세스합니다. 속성은 IDictionaryEnumerator.Value 개체를 반환합니다 ResXDataNode .

적용 대상