SoapNegativeInteger.Parse(String) 方法

定義

將指定的 String 物件轉換成物件 SoapNegativeInteger

public:
 static System::Runtime::Remoting::Metadata::W3cXsd2001::SoapNegativeInteger ^ Parse(System::String ^ value);
public static System.Runtime.Remoting.Metadata.W3cXsd2001.SoapNegativeInteger Parse(string value);
static member Parse : string -> System.Runtime.Remoting.Metadata.W3cXsd2001.SoapNegativeInteger
Public Shared Function Parse (value As String) As SoapNegativeInteger

參數

value
String

那個 String 要轉換。

傳回

一個 SoapNegativeInteger 由 得到 value的物件。

範例

下列程式代碼範例示範如何使用 Parse 方法。 此程式碼範例是本類別中提供 SoapNegativeInteger 較大範例的一部分。

// Parse an XSD formatted string to create a SoapNegativeInteger
// object.
String^ xsdIntegerString = L"-13";
SoapNegativeInteger^ xsdInteger = SoapNegativeInteger::Parse(
   xsdIntegerString );
// Parse an XSD formatted string to create a SoapNegativeInteger
// object.
string xsdIntegerString = "-13";
SoapNegativeInteger xsdInteger =
    SoapNegativeInteger.Parse(xsdIntegerString);

適用於