다음을 통해 공유


SoapAnyUri 생성자

정의

SoapAnyUri 클래스의 새 인스턴스를 초기화합니다.

오버로드

SoapAnyUri()

SoapAnyUri 클래스의 새 인스턴스를 초기화합니다.

SoapAnyUri(String)

URI가 지정된 SoapAnyUri 클래스의 새 인스턴스를 초기화합니다.

SoapAnyUri()

SoapAnyUri 클래스의 새 인스턴스를 초기화합니다.

public:
 SoapAnyUri();
public SoapAnyUri ();
Public Sub New ()

예제

다음 코드 예제에서는이 생성자를 사용 하는 방법을 보여 줍니다.

// Create a SoapAnyUri object.
SoapAnyUri^ anyUri = gcnew SoapAnyUri;
anyUri->Value = L"http://localhost:8080/WebService";
Console::WriteLine( L"The value of the SoapAnyUri object is {0}.", anyUri );
// Create a SoapAnyUri object.
SoapAnyUri anyUri = new SoapAnyUri();
anyUri.Value = "http://localhost:8080/WebService";
Console.WriteLine(
    "The value of the SoapAnyUri object is {0}.",
    anyUri.ToString());

적용 대상

SoapAnyUri(String)

URI가 지정된 SoapAnyUri 클래스의 새 인스턴스를 초기화합니다.

public:
 SoapAnyUri(System::String ^ value);
public SoapAnyUri (string value);
new System.Runtime.Remoting.Metadata.W3cXsd2001.SoapAnyUri : string -> System.Runtime.Remoting.Metadata.W3cXsd2001.SoapAnyUri
Public Sub New (value As String)

매개 변수

value
String

URI가 들어 있는 String입니다.

예제

다음 코드 예제에서는이 생성자를 사용 하는 방법을 보여 줍니다.

// Create a SoapAnyUri object.
String^ anyUriValue = L"http://localhost:8080/WebService";
SoapAnyUri^ anyUri = gcnew SoapAnyUri( anyUriValue );
Console::WriteLine( L"The value of the SoapAnyUri object is {0}.", anyUri );
// Create a SoapAnyUri object.
string anyUriValue = "http://localhost:8080/WebService";
SoapAnyUri anyUri = new SoapAnyUri(anyUriValue);
Console.WriteLine(
    "The value of the SoapAnyUri object is {0}.",
    anyUri.ToString());

적용 대상