SoapTypeAttribute 클래스

정의

대상 형식에 대한 SOAP 생성 및 처리를 사용자 지정합니다. 이 클래스는 상속할 수 없습니다.

public ref class SoapTypeAttribute sealed : System::Runtime::Remoting::Metadata::SoapAttribute
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Enum | System.AttributeTargets.Interface | System.AttributeTargets.Struct)]
public sealed class SoapTypeAttribute : System.Runtime.Remoting.Metadata.SoapAttribute
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Enum | System.AttributeTargets.Interface | System.AttributeTargets.Struct)]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class SoapTypeAttribute : System.Runtime.Remoting.Metadata.SoapAttribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Enum | System.AttributeTargets.Interface | System.AttributeTargets.Struct)>]
type SoapTypeAttribute = class
    inherit SoapAttribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Enum | System.AttributeTargets.Interface | System.AttributeTargets.Struct)>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type SoapTypeAttribute = class
    inherit SoapAttribute
Public NotInheritable Class SoapTypeAttribute
Inherits SoapAttribute
상속
SoapTypeAttribute
특성

예제

다음 코드 예제에서는 클래스에 대해 생성된 SOAP의 사용자 지정을 보여 줍니다 SoapTypeAttribute. SOAP는 클래스 예제에 표시된 코드로 SerializableAttribute 생성할 수 있습니다.

[Serializable]
[SoapTypeAttribute(XmlNamespace="MyXmlNamespace")]
public ref class TestSimpleObject
{
public:
   int member1;

   [SoapFieldAttribute(XmlElementName="MyXmlElement")] String^ member2;

   String^ member3;
   double member4;

   // A field that is not serialized.

   [NonSerialized] String^ member5;

   TestSimpleObject()
   {
      member1 = 11;
      member2 = "hello";
      member3 = "hello";
      member4 = 3.14159265;
      member5 = "hello world!";
   }
};
[Serializable()]
[SoapTypeAttribute(XmlNamespace="MyXmlNamespace")]
public class TestSimpleObject  {

    public int member1;

    [SoapFieldAttribute(XmlElementName="MyXmlElement")] public string member2;

    public string member3;
    public double member4;

    // A field that is not serialized.
    [NonSerialized()] public string member5;

    public TestSimpleObject() {

        member1 = 11;
        member2 = "hello";
        member3 = "hello";
        member4 = 3.14159265;
        member5 = "hello world!";
    }
}
<Serializable(), SoapTypeAttribute(XmlNamespace := "MyXmlNamespace")> Public Class TestSimpleObject
   
   Public member1 As Integer

   <SoapFieldAttribute(XmlElementName := "MyXmlElement")> Public member2 As String
   
   Public member3 As String
   Public member4 As Double

   ' A field that is not serialized.
   <NonSerialized()> Public member5 As String  


   Public Sub New()
      member1 = 11
      member2 = "hello"
      member3 = "hello"
      member4 = 3.14159265
      member5 = "hello world!"
   End Sub

End Class

설명

특성은 SoapTypeAttribute 개체, 값 형식 및 인터페이스 개체에 적용할 수 있는 사용자 지정 특성입니다. 이 특성은 SOAP에서 SOAP XML 와이어 형식을 생성하는 방법을 제어하는 개체 형식에 대한 정보를 지정하는 데 사용됩니다.

생성자

Name Description
SoapTypeAttribute()

SoapTypeAttribute인스턴스를 만듭니다.

필드

Name Description
ProtXmlNamespace

현재 SOAP 특성의 대상이 serialize되는 XML 네임스페이스입니다.

(다음에서 상속됨 SoapAttribute)
ReflectInfo

XML serialization 정보를 설정하기 위해 클래스에서 파생된 특성 클래스에서 SoapAttribute 사용하는 리플렉션 개체입니다.

(다음에서 상속됨 SoapAttribute)

속성

Name Description
Embedded

SOAP serialization 중에 형식을 중첩해야 하는지 여부를 나타내는 값을 가져오거나 설정합니다.

(다음에서 상속됨 SoapAttribute)
SoapOptions

구성 값을 가져오거나 설정합니다 SoapOption .

TypeId

파생 클래스에서 구현되는 경우 이 Attribute대한 고유 식별자를 가져옵니다.

(다음에서 상속됨 Attribute)
UseAttribute

현재 특성의 대상이 XML 필드 대신 XML 특성으로 serialize되는지 여부를 나타내는 값을 가져오거나 설정합니다.

XmlElementName

XML 요소 이름을 가져오거나 설정합니다.

XmlFieldOrder

대상 개체 형식의 XML 필드 순서를 가져오거나 설정합니다.

XmlNamespace

대상 개체 형식을 serialization하는 동안 사용되는 XML 네임스페이스를 가져오거나 설정합니다.

XmlTypeName

대상 개체 형식의 XML 형식 이름을 가져오거나 설정합니다.

XmlTypeNamespace

현재 개체 형식의 XML 형식 네임스페이스를 가져오거나 설정합니다.

메서드

Name Description
Equals(Object)

이 인스턴스가 지정된 개체와 같은지 여부를 나타내는 값을 반환합니다.

(다음에서 상속됨 Attribute)
GetHashCode()

이 인스턴스의 해시 코드를 반환합니다.

(다음에서 상속됨 Attribute)
GetType()

현재 인스턴스의 Type 가져옵니다.

(다음에서 상속됨 Object)
IsDefaultAttribute()

파생 클래스에서 재정의되는 경우 이 인스턴스의 값이 파생 클래스의 기본값인지 여부를 나타냅니다.

(다음에서 상속됨 Attribute)
Match(Object)

파생 클래스에서 재정의되는 경우 이 인스턴스가 지정된 개체와 같은지 여부를 나타내는 값을 반환합니다.

(다음에서 상속됨 Attribute)
MemberwiseClone()

현재 Object단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)

명시적 인터페이스 구현

Name Description
_Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)

이름 집합을 해당 디스패치 식별자 집합에 매핑합니다.

(다음에서 상속됨 Attribute)
_Attribute.GetTypeInfo(UInt32, UInt32, IntPtr)

인터페이스의 형식 정보를 가져오는 데 사용할 수 있는 개체의 형식 정보를 검색합니다.

(다음에서 상속됨 Attribute)
_Attribute.GetTypeInfoCount(UInt32)

개체가 제공하는 형식 정보 인터페이스의 수를 검색합니다(0 또는 1).

(다음에서 상속됨 Attribute)
_Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)

개체에 의해 노출되는 속성 및 메서드에 대한 액세스를 제공합니다.

(다음에서 상속됨 Attribute)

적용 대상