Share via


SoapNonPositiveInteger.GetXsdType 方法

定义

返回当前 SOAP 类型的 XML 架构定义语言 (XSD)。

public:
 virtual System::String ^ GetXsdType();
public string GetXsdType ();
abstract member GetXsdType : unit -> string
override this.GetXsdType : unit -> string
Public Function GetXsdType () As String

返回

一个 String 指示当前 SOAP 类型的 XSD。

实现

示例

下面的代码示例说明如何使用 GetXsdType 方法。 此代码示例是为 SoapNonPositiveInteger 类提供的一个更大示例的一部分。

// Print the XSD type string of the SoapNonPositiveInteger object.
Console::WriteLine( L"The XSD type of the SoapNonPositiveInteger object is {0}.",
   xsdInteger->GetXsdType() );
// Print the XSD type string of the SoapNonPositiveInteger object.
Console.WriteLine(
    "The XSD type of the SoapNonPositiveInteger " +
    "object is {0}.", xsdInteger.GetXsdType());

适用于