ConfigurationElement 생성자

정의

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

적용 대상