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 컬렉션입니다.