ConfigurationElement 생성자
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
ConfigurationElement 클래스의 새 인스턴스를 초기화합니다.
protected:
ConfigurationElement();
protected ConfigurationElement();
Protected Sub New ()
예제
다음 예제에서는 사용자 지정된 생성자를 사용하는 방법을 보여 있습니다.
// Constructor allowing name, url, and port to be specified.
public UrlConfigElement(String newName,
String newUrl, int newPort)
{
Name = newName;
Url = newUrl;
Port = newPort;
}
' Constructor allowing name, url, and port to be specified.
Public Sub New(ByVal newName As String, _
ByVal newUrl As String, _
ByVal newPort As Integer)
Name = newName
Url = newUrl
Port = newPort
End Sub
설명
예를 들어 애플리케이션이 관련 ConfigurationElement 컬렉션에 ConfigurationElementCollection 새 요소를 추가해야 할 때마다 클래스의 새 인스턴스를 만듭니다.