SoapAnyUri Constructors

Definition

Initializes a new instance of the SoapAnyUri class.

Overloads

SoapAnyUri()

Initializes a new instance of the SoapAnyUri class.

SoapAnyUri(String)

Initializes a new instance of the SoapAnyUri class with the specified URI.

SoapAnyUri()

Initializes a new instance of the SoapAnyUri class.

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

Examples

The following code example shows how to use this constructor.

// 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());

Applies to

SoapAnyUri(String)

Initializes a new instance of the SoapAnyUri class with the specified URI.

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)

Parameters

value
String

A String that contains a URI.

Examples

The following code example shows how to use this constructor.

// 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());

Applies to