|
System.Runtime.Remoting.Metadata Namespace
System.Runtime.Remoting.Metadata NamespaceThe System.Runtime.Remoting.Metadata namespace contains classes and attributes that can be used to customize generation and processing of SOAP for objects and fields. The classes of this namespace can be used to indicate the SOAPAction header field, type output, XML element name, and the method XML namespace URI. This information is used by the SOAP serializer during SOAP generation and the Soapsuds tool during Web Services Description Language (WSDL) generation. The information specified by the attributes in this namespace can be used on the receiving end of the generated SOAP to customize processing of the remoted method calls and objects.One of the most important classes of the System.Runtime.Remoting.Metadata namespace is SoapAttribute class. The SoapAttribute class is nonfunctional, and can only be used as the base class for all the metadata attributes. For more information on the SOAPAction HTTP header field, see www.w3.org/tr/soap/#_Toc478383528.
SoapAttribute ClassProvides default functionality for all SOAP attributes.
System.Object [Visual Basic]
Public Class SoapAttribute [C#]
public class SoapAttribute : Attribute [C++]
public __gc class SoapAttribute : public Attribute [JScript]
public class SoapAttribute extends Attribute Thread Safety Any public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe. Remarks The SoapAttribute is nonfunctional, and can be used only as the base class for SOAP attributes. Requirements Namespace: System.Runtime.Remoting.Metadata Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family Assembly: Mscorlib (in Mscorlib.dll) SoapAttribute Constructor Initializes a new instance of the SoapAttribute class. [Visual Basic]
Public Sub New() [C#]
public SoapAttribute(); [C++]
public: SoapAttribute(); [JScript]
public function SoapAttribute(); Remarks The default constructor initializes any fields to their default values. Requirements Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family SoapAttribute.ProtXmlNamespace Field This member supports the .NET Framework infrastructure and is not intended to be used directly from your code. [Visual Basic]
Protected ProtXmlNamespace As String [C#]
protected string ProtXmlNamespace; [C++]
protected: String* ProtXmlNamespace; [JScript]
protected var ProtXmlNamespace : String; SoapAttribute.ReflectInfo Field This member supports the .NET Framework infrastructure and is not intended to be used directly from your code. [Visual Basic]
Protected ReflectInfo As Object [C#]
protected object ReflectInfo; [C++]
protected: Object* ReflectInfo; [JScript]
protected var ReflectInfo : Object; SoapAttribute.Embedded Property Gets or sets a value indicating whether the type must be nested during SOAP serialization. [Visual Basic]
Public Overridable Property Embedded As Boolean [C#]
public virtual bool Embedded {get; set;}[C++]
public: __property virtual bool get_Embedded(); [JScript]
public function get Embedded() : Boolean; Property Value true if the target object must be nested during SOAP serialization; otherwise, false. Requirements Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family SoapAttribute.UseAttribute Property Gets or sets a value indicating whether the target of the current attribute will be serialized as an XML attribute instead of an XML field. [Visual Basic]
Public Overridable Property UseAttribute As Boolean [C#]
public virtual bool UseAttribute {get; set;}[C++]
public: __property virtual bool get_UseAttribute(); [JScript]
public function get UseAttribute() : Boolean; Property Value true if the target object of the current attribute must be serialized as an XML attribute; false if the target object must be serialized as a subelement. Remarks For example, if a field FieldA of an object ObjectB is qualified with the SoapFieldAttribute(UseAttribute=true) attribute, FieldA will be serialized as <ObjectB><FieldA>5</FieldA></ObjectB>. If the UseAttribute property is set to false, FieldA will be serialized as <ObjectB FieldA="5"></ObjectB>. Requirements Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family SoapAttribute.XmlNamespace Property Gets or sets the XML namespace name. [Visual Basic]
Public Overridable Property XmlNamespace As String [C#]
public virtual string XmlNamespace {get; set;}[C++]
public: __property virtual String* get_XmlNamespace(); [JScript]
public function get XmlNamespace() : String; Property Value The XML namespace name under which the target of the current attribute is serialized. Remarks If the current property returns a null reference (Nothing in Visual Basic), then the namespace is not qualified. Requirements Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family
SoapFieldAttribute ClassCustomizes SOAP generation and processing for a field. This class cannot be inherited.
System.Object [Visual Basic]
<AttributeUsage(AttributeTargets.Field)> [C#]
[AttributeUsage(AttributeTargets.Field)] [C++]
[AttributeUsage(AttributeTargets::Field)] [JScript]
public Thread Safety Any public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe. Remarks The target objects for the SoapFieldAttribute attribute are object fields. The SoapFieldAttribute attribute is used to specify information that controls how the .NET Framework generates the SOAP XML wire format for target fields. Example [Visual Basic, C#, C++] The following code example demonstrates customization of SOAP generated for a field of a class with the SoapFieldAttribute. The SOAP can be produced by the code shown in the SerializableAttribute class example. [Visual Basic]
<Serializable(), SoapTypeAttribute(XmlNamespace := "MyXmlNamespace")> Public Class TestSimpleObject[C#]
[Serializable()][C++]
[Serializable] Requirements Namespace: System.Runtime.Remoting.Metadata Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family Assembly: Mscorlib (in Mscorlib.dll) SoapFieldAttribute Constructor Initializes a new instance of the SoapFieldAttribute class. [Visual Basic]
Public Sub New() [C#]
public SoapFieldAttribute(); [C++]
public: SoapFieldAttribute(); [JScript]
public function SoapFieldAttribute(); Remarks The default constructor initializes any fields to their default values. Requirements Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family SoapFieldAttribute.Order Property This member supports the .NET Framework infrastructure and is not intended to be used directly from your code. [Visual Basic]
Public Property Order As Integer [C#]
public int Order {get; set;}[C++]
public: __property int get_Order(); [JScript]
public function get Order() : int; SoapFieldAttribute.XmlElementName Property Gets or sets the XML element name of the field contained in the SoapFieldAttribute attribute. [Visual Basic]
Public Property XmlElementName As String [C#]
public string XmlElementName {get; set;}[C++]
public: __property String* get_XmlElementName(); [JScript]
public function get XmlElementName() : String; Property Value The XML element name of the field contained in this attribute. Requirements Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family SoapFieldAttribute.IsInteropXmlElement Method Returns a value indicating whether the current attribute contains interop XML element values. [Visual Basic]
Public Function IsInteropXmlElement() As Boolean [C#]
public bool IsInteropXmlElement(); [C++]
public: bool IsInteropXmlElement(); [JScript]
public function IsInteropXmlElement() : Boolean; Return Value true if the current attribute contains interop XML element values; otherwise, false. Requirements Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family
SoapMethodAttribute ClassCustomizes SOAP generation and processing for a method. This class cannot be inherited.
System.Object [Visual Basic]
<AttributeUsage(AttributeTargets.Method)> [C#]
[AttributeUsage(AttributeTargets.Method)] [C++]
[AttributeUsage(AttributeTargets::Method)] [JScript]
public Thread Safety Any public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe. Remarks The target objects for the SoapMethodAttribute attribute are methods that can be remotely invoked. Apply the SoapMethodAttribute to customize SOAP generation and processing. Properties of this attribute allow the programmer to customize the SOAPAction HTTP header field to indicate the intent of the SOAP HTTP request. Requirements Namespace: System.Runtime.Remoting.Metadata Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family Assembly: Mscorlib (in Mscorlib.dll) SoapMethodAttribute Constructor Initializes a new instance of the SoapMethodAttribute class. [Visual Basic]
Public Sub New() [C#]
public SoapMethodAttribute(); [C++]
public: SoapMethodAttribute(); [JScript]
public function SoapMethodAttribute(); Remarks The default constructor initializes any fields to their default values. Requirements Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family SoapMethodAttribute.ResponseXmlElementName Property Gets or sets the XML element name to use for the method response to the target method. [Visual Basic]
Public Property ResponseXmlElementName As String [C#]
public string ResponseXmlElementName {get; set;}[C++]
public: __property String* get_ResponseXmlElementName(); [JScript]
public function get ResponseXmlElementName() : String; Property Value The XML element name to use for the method response to the target method. Remarks The default value of this property is the string "Response" appended to the name of the method. Requirements Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family SoapMethodAttribute.ResponseXmlNamespace Property Gets or sets the XML element namesapce used for method response to the target method. [Visual Basic]
Public Property ResponseXmlNamespace As String [C#]
public string ResponseXmlNamespace {get; set;}[C++]
public: __property String* get_ResponseXmlNamespace(); [JScript]
public function get ResponseXmlNamespace() : String; Property Value The XML element namesapce used for method response to the target method. Requirements Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family SoapMethodAttribute.ReturnXmlElementName Property Gets or sets the XML element name used for the return value from the target method. [Visual Basic]
Public Property ReturnXmlElementName As String [C#]
public string ReturnXmlElementName {get; set;}[C++]
public: __property String* get_ReturnXmlElementName(); [JScript]
public function get ReturnXmlElementName() : String; Property Value The XML element name used for the return value from the target method. Remarks The default value of this property is the "__return" string. Requirements Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family SoapMethodAttribute.SoapAction Property Gets or sets the SOAPAction header field used with HTTP requests sent with this method. [Visual Basic]
Public Property SoapAction As String [C#]
public string SoapAction {get; set;}[C++]
public: __property String* get_SoapAction(); [JScript]
public function get SoapAction() : String; Property Value The SOAPAction header field used with HTTP requests sent with this method. Remarks The SOAPAction HTTP request header field indicates the intent of the SOAP HTTP request. For more information on the SOAPAction field, see www.w3.org/tr/soap/#_Toc478383528. Requirements Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family SoapMethodAttribute.UseAttribute Property Gets or sets a value indicating whether the target of the current attribute will be serialized as an XML attribute instead of an XML field. [Visual Basic]
Overrides Public Property UseAttribute As Boolean [C#]
public override bool UseAttribute {get; set;}[C++]
public: __property bool get_UseAttribute(); [JScript]
public override function get UseAttribute() : Boolean; Property Value The current implementation always returns false. Exceptions
Remarks The UseAttribute property cannot be set on the SoapMethodAttribute attribute. Requirements Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family SoapMethodAttribute.XmlNamespace Property Gets or sets the XML namespace that is used during serialization of remote method calls of the target method. [Visual Basic]
Overrides Public Property XmlNamespace As String [C#]
public override string XmlNamespace {get; set;}[C++]
public: __property String* get_XmlNamespace(); [JScript]
public override function get XmlNamespace() : String; Property Value The XML namespace that is used during serialization of remote method calls of the target method. Requirements Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family
SoapOption EnumerationSpecifies the SOAP configuration options for use with the SoapTypeAttribute class.This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values. [Visual Basic]
<Flags> [C#]
[Flags] [C++]
[Flags] [JScript]
public Remarks The SoapOption enumeration is used to specify instructions to the .NET Framework on how it will generate the SOAP. Members
Requirements Namespace: System.Runtime.Remoting.Metadata Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family Assembly: Mscorlib (in Mscorlib.dll)
SoapParameterAttribute ClassCustomizes SOAP generation and processing for a parameter. This class cannot be inherited.
System.Object [Visual Basic]
<AttributeUsage(AttributeTargets.Parameter)> [C#]
[AttributeUsage(AttributeTargets.Parameter)] [C++]
[AttributeUsage(AttributeTargets::Parameter)] [JScript]
public Thread Safety Any public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe. Remarks The target objects for the SoapParameterAttribute attributes are parameters of method calls that are remotely invoked. The SoapParameterAttribute is used to specify information that controls how the .NET Framework generates the SOAP XML wire format for target parameters. Requirements Namespace: System.Runtime.Remoting.Metadata Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family Assembly: Mscorlib (in Mscorlib.dll) SoapParameterAttribute Constructor Initializes a new instance of the SoapParameterAttribute class. [Visual Basic]
Public Sub New() [C#]
public SoapParameterAttribute(); [C++]
public: SoapParameterAttribute(); [JScript]
public function SoapParameterAttribute(); Remarks The default constructor initializes any fields to their default values. Requirements Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family
SoapTypeAttribute ClassCustomizes SOAP generation and processing for target types. This class cannot be inherited.
System.Object [Visual Basic]
<AttributeUsage(AttributeTargets.Class Or AttributeTargets.Struct _ [C#]
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | [C++]
[AttributeUsage(AttributeTargets::Class | AttributeTargets::Struct [JScript]
public
AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | Thread Safety Any public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe. Remarks The SoapTypeAttribute attribute is a custom attribute that can be applied to objects, value types, and interface objects. This attribute is used to specify information on an object type that controls how SOAP will generate the SOAP XML wire format. Example [Visual Basic, C#, C++] The following code example demonstrates customization of SOAP generated for a class with the SoapTypeAttribute. The SOAP can be produced by the code shown in the SerializableAttribute class example. [Visual Basic]
<Serializable(), SoapTypeAttribute(XmlNamespace := "MyXmlNamespace")> Public Class TestSimpleObject [C#]
[Serializable()] [C++]
[Serializable] Requirements Namespace: System.Runtime.Remoting.Metadata Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family Assembly: Mscorlib (in Mscorlib.dll) SoapTypeAttribute Constructor Initializes a new instance of the SoapTypeAttribute class. [Visual Basic]
Public Sub New() [C#]
public SoapTypeAttribute(); [C++]
public: SoapTypeAttribute(); [JScript]
public function SoapTypeAttribute(); Remarks The default constructor initializes any fields to their default values. Requirements Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family SoapTypeAttribute.SoapOptions Property Gets or sets a SoapOption configuration value. [Visual Basic]
Public Property SoapOptions As SoapOption [C#]
public SoapOption SoapOptions {get; set;}[C++]
public: __property SoapOption get_SoapOptions(); [JScript]
public function get SoapOptions() : SoapOption; Property Value A SoapOption value. Remarks A SoapOption value indicates the SOAP configuration options that will be used with a SoapTypeAttribute attribute.
Requirements Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family SoapTypeAttribute.UseAttribute Property Gets or sets a value indicating whether the target of the current attribute will be serialized as an XML attribute instead of an XML field. [Visual Basic]
Overrides Public Property UseAttribute As Boolean [C#]
public override bool UseAttribute {get; set;}[C++]
public: __property bool get_UseAttribute(); [JScript]
public override function get UseAttribute() : Boolean; Property Value The current implementation always returns false. Exceptions
Remarks The UseAttribute property cannot be set on the SoapTypeAttribute attribute. Requirements Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family SoapTypeAttribute.XmlElementName Property Gets or sets the XML element name. [Visual Basic]
Public Property XmlElementName As String [C#]
public string XmlElementName {get; set;}[C++]
public: __property String* get_XmlElementName(); [JScript]
public function get XmlElementName() : String; Property Value The XML element name. Requirements Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family SoapTypeAttribute.XmlFieldOrder Property This member supports the .NET Framework infrastructure and is not intended to be used directly from your code. [Visual Basic]
Public Property XmlFieldOrder As XmlFieldOrderOption [C#]
public XmlFieldOrderOption XmlFieldOrder {get; set;}[C++]
public: __property XmlFieldOrderOption get_XmlFieldOrder(); [JScript]
public function get XmlFieldOrder() : XmlFieldOrderOption; SoapTypeAttribute.XmlNamespace Property Gets or sets the XML namespace that is used during serialization of the target object type. [Visual Basic]
Overrides Public Property XmlNamespace As String [C#]
public override string XmlNamespace {get; set;}[C++]
public: __property String* get_XmlNamespace(); [JScript]
public override function get XmlNamespace() : String; Property Value The XML namespace that is used during serialization of the target object type. Requirements Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family SoapTypeAttribute.XmlTypeName Property Gets or sets the XML type name for the target object type. [Visual Basic]
Public Property XmlTypeName As String [C#]
public string XmlTypeName {get; set;}[C++]
public: __property String* get_XmlTypeName(); [JScript]
public function get XmlTypeName() : String; Property Value The XML type name for the target object type. Requirements Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family SoapTypeAttribute.XmlTypeNamespace Property Gets or sets the XML type namespace for the current object type. [Visual Basic]
Public Property XmlTypeNamespace As String [C#]
public string XmlTypeNamespace {get; set;}[C++]
public: __property String* get_XmlTypeNamespace(); [JScript]
public function get XmlTypeNamespace() : String; Property Value The XML type namespace for the current object type. Requirements Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family
XmlFieldOrderOption EnumerationThis type supports the .NET Framework infrastructure and is not intended to be used directly from your code.[Visual Basic]
<Serializable> [C#]
[Serializable] [C++]
[Serializable] [JScript]
public
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||