SoapNormalizedString 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
XML normalizedString
형식을 래핑합니다.
public ref class SoapNormalizedString sealed : System::Runtime::Remoting::Metadata::W3cXsd2001::ISoapXsd
[System.Serializable]
public sealed class SoapNormalizedString : System.Runtime.Remoting.Metadata.W3cXsd2001.ISoapXsd
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class SoapNormalizedString : System.Runtime.Remoting.Metadata.W3cXsd2001.ISoapXsd
[<System.Serializable>]
type SoapNormalizedString = class
interface ISoapXsd
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type SoapNormalizedString = class
interface ISoapXsd
Public NotInheritable Class SoapNormalizedString
Implements ISoapXsd
- 상속
-
SoapNormalizedString
- 특성
- 구현
예제
다음 코드 예제에서 멤버를 사용 하는 방법을 보여 줍니다 합니다 SoapNormalizedString 간을 변환 하는 클래스를 SoapNormalizedString 개체와 XSD normalizedString
합니다.
#using <System.Runtime.Remoting.dll>
using namespace System;
using namespace System::Runtime::Remoting::Metadata::W3cXsd2001;
static void TestParse( String^ testString )
{
try
{
// Parse the test string.
SoapNormalizedString^ normalized = SoapNormalizedString::Parse(
testString );
// Report that the parse succeeded if no exception was thrown.
Console::WriteLine( L"Parse succeeded on the string \"{0}\".",
testString );
// Print the string representation of the object.
Console::WriteLine( L"The normalized value of this string is \"{0}\".",
normalized );
// Print the XSD type of the object.
Console::WriteLine( L"The XSD type of the SoapNormalizedString object is {0}.",
normalized->GetXsdType() );
// Print the value of the SoapNormalizedString object.
Console::WriteLine( L"The value of the SoapNormalizedString object is \"{0}\".",
normalized->Value );
}
catch ( System::Runtime::Remoting::RemotingException^ e )
{
// Report the details of the exception that was thrown.
Console::WriteLine( L"Parse failed on the string \"{0}\".",
testString );
Console::WriteLine( e->Message );
}
}
int main()
{
// Create strings to test the Parse method.
String^ stringWithSpaces = L"one two";
String^ stringWithSpacesAndTabs = L"one two\t";
String^ stringWithSpacesAndLineFeed = L"one two\n";
String^ stringWithSpacesAndCarriageReturn = L"one two\r";
// Test the Parse method with each string.
TestParse( stringWithSpaces );
TestParse( stringWithSpacesAndTabs );
TestParse( stringWithSpacesAndLineFeed );
TestParse( stringWithSpacesAndCarriageReturn );
// Print the XSD type string of the SoapNormalizedString class.
Console::WriteLine( L"The XSD type of the SoapNormalizedString class is {0}.",
SoapNormalizedString::XsdType );
}
using System;
using System.Runtime.Remoting.Metadata.W3cXsd2001;
public class Demo
{
public static void TestParse(string testString)
{
try
{
// Parse the test string.
SoapNormalizedString normalized =
SoapNormalizedString.Parse(testString);
// Report that the parse succeeded if no exception was thrown.
Console.WriteLine(
"Parse succeeded on the string \"{0}\".",
testString);
// Print the string representation of the object.
Console.WriteLine(
"The normalized value of this string is \"{0}\".",
normalized.ToString());
// Print the XSD type of the object.
Console.WriteLine(
"The XSD type of the SoapNormalizedString " +
"object is {0}.", normalized.GetXsdType());
// Print the value of the SoapNormalizedString object.
Console.WriteLine(
"The value of the SoapNormalizedString " +
"object is \"{0}\".",
normalized.Value);
}
catch(System.Runtime.Remoting.RemotingException e)
{
// Report the details of the exception that was thrown.
Console.WriteLine(
"Parse failed on the string \"{0}\".",
testString);
Console.WriteLine(e.Message);
}
}
public static void Main(string[] args)
{
// Create strings to test the Parse method.
string stringWithSpaces = "one two";
string stringWithSpacesAndTabs = "one two\t";
string stringWithSpacesAndLineFeed = "one two\n";
string stringWithSpacesAndCarriageReturn = "one two\r";
// Test the Parse method with each string.
TestParse(stringWithSpaces);
TestParse(stringWithSpacesAndTabs);
TestParse(stringWithSpacesAndLineFeed);
TestParse(stringWithSpacesAndCarriageReturn);
// Print the XSD type string of the SoapNormalizedString class.
Console.WriteLine(
"The XSD type of the SoapNormalizedString class " +
"is {0}.", SoapNormalizedString.XsdType);
}
}
생성자
SoapNormalizedString() |
SoapNormalizedString 클래스의 새 인스턴스를 초기화합니다. |
SoapNormalizedString(String) |
정규화된 문자열을 사용하여 SoapNormalizedString 클래스의 새 인스턴스를 초기화합니다. |
속성
Value |
정규화된 문자열을 가져오거나 설정합니다. |
XsdType |
현재 SOAP 형식의 XSD(XML Schema Definition Language)를 가져옵니다. |
메서드
Equals(Object) |
지정된 개체가 현재 개체와 같은지 확인합니다. (다음에서 상속됨 Object) |
GetHashCode() |
기본 해시 함수로 작동합니다. (다음에서 상속됨 Object) |
GetType() |
현재 인스턴스의 Type을 가져옵니다. (다음에서 상속됨 Object) |
GetXsdType() |
현재 SOAP 형식의 XSD(XML Schema Definition Language)를 반환합니다. |
MemberwiseClone() |
현재 Object의 단순 복사본을 만듭니다. (다음에서 상속됨 Object) |
Parse(String) |
지정된 String을 SoapNormalizedString 개체로 변환합니다. |
ToString() |
적용 대상
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기