SoapQName Constructors

Definition

Initializes a new instance of the SoapQName class.

Overloads

SoapQName()

Initializes a new instance of the SoapQName class.

SoapQName(String)

Initializes a new instance of the SoapQName class with the local part of a qualified name.

SoapQName(String, String)

Initializes a new instance of the SoapQName class with the namespace alias and the local part of a qualified name.

SoapQName(String, String, String)

Initializes a new instance of the SoapQName class with the namespace alias, the local part of a qualified name, and the namespace that is referenced by the alias.

SoapQName()

Initializes a new instance of the SoapQName class.

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

Examples

The following code example shows how to use this constructor.

// Create a SoapQName object.
SoapQName^ qName = gcnew SoapQName;
Console::WriteLine(
   L"The value of the SoapQName object is \"{0}\".", qName );
// Create a SoapQName object.
SoapQName qName = new SoapQName();
Console.WriteLine(
    "The value of the SoapQName object is \"{0}\".",
    qName.ToString());

Applies to

SoapQName(String)

Initializes a new instance of the SoapQName class with the local part of a qualified name.

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

Parameters

value
String

A String that contains the local part of a qualified name.

Examples

The following code example shows how to use this constructor.

// Create a SoapQName object.
String^ name = L"SomeName";
SoapQName^ qName = gcnew SoapQName( name );
Console::WriteLine(
   L"The value of the SoapQName object is \"{0}\".", qName );
// Create a SoapQName object.
string name = "SomeName";
SoapQName qName = new SoapQName(name);
Console.WriteLine(
    "The value of the SoapQName object is \"{0}\".",
    qName.ToString());

Applies to

SoapQName(String, String)

Initializes a new instance of the SoapQName class with the namespace alias and the local part of a qualified name.

public:
 SoapQName(System::String ^ key, System::String ^ name);
public SoapQName (string key, string name);
new System.Runtime.Remoting.Metadata.W3cXsd2001.SoapQName : string * string -> System.Runtime.Remoting.Metadata.W3cXsd2001.SoapQName
Public Sub New (key As String, name As String)

Parameters

key
String

A String that contains the namespace alias of a qualified name.

name
String

A String that contains the local part of a qualified name.

Examples

The following code example shows how to use this constructor.

// Create a SoapQName object.
String^ key = L"tns";
String^ name = L"SomeName";
SoapQName^ qName = gcnew SoapQName( key,name );
Console::WriteLine(
   L"The value of the SoapQName object is \"{0}\".", qName );
// Create a SoapQName object.
string key = "tns";
string name = "SomeName";
SoapQName qName = new SoapQName(key, name);
Console.WriteLine(
    "The value of the SoapQName object is \"{0}\".",
    qName.ToString());

Applies to

SoapQName(String, String, String)

Initializes a new instance of the SoapQName class with the namespace alias, the local part of a qualified name, and the namespace that is referenced by the alias.

public:
 SoapQName(System::String ^ key, System::String ^ name, System::String ^ namespaceValue);
public SoapQName (string key, string name, string namespaceValue);
new System.Runtime.Remoting.Metadata.W3cXsd2001.SoapQName : string * string * string -> System.Runtime.Remoting.Metadata.W3cXsd2001.SoapQName
Public Sub New (key As String, name As String, namespaceValue As String)

Parameters

key
String

A String that contains the namespace alias of a qualified name.

name
String

A String that contains the local part of a qualified name.

namespaceValue
String

A String that contains the namespace that is referenced by key.

Examples

The following code example shows how to use this constructor.

// Create a SoapQName object.
String^ key = L"tns";
String^ name = L"SomeName";
String^ namespaceValue = L"http://example.org";
SoapQName^ qName = gcnew SoapQName(
   key,name,namespaceValue );
Console::WriteLine(
   L"The value of the SoapQName object is \"{0}\".", qName );
// Create a SoapQName object.
string key = "tns";
string name = "SomeName";
string namespaceValue = "http://example.org";
SoapQName qName = new SoapQName(key, name, namespaceValue);
Console.WriteLine(
    "The value of the SoapQName object is \"{0}\".",
    qName.ToString());

Applies to