|
Este artículo proviene de un motor de traducción automática. Mueva el puntero sobre las frases del artículo para ver el texto original. Más información.
|
Traducción
Original
|
WebServiceBindingAttribute (Clase)
Espacio de nombres: System.Web.Services
Ensamblado: System.Web.Services (en System.Web.Services.dll)
El tipo WebServiceBindingAttribute expone los siguientes miembros.
| Nombre | Descripción | |
|---|---|---|
![]() | WebServiceBindingAttribute() | |
![]() | WebServiceBindingAttribute(String) | |
![]() | WebServiceBindingAttribute(String, String) | |
![]() | WebServiceBindingAttribute(String, String, String) |
| Nombre | Descripción | |
|---|---|---|
![]() | ConformsTo | |
![]() | EmitConformanceClaims | |
![]() | Location | |
![]() | Name | |
![]() | Namespace | |
![]() | TypeId |
| Nombre | Descripción | |
|---|---|---|
![]() | Equals | Infraestructura. |
![]() | GetHashCode | |
![]() | GetType | |
![]() | IsDefaultAttribute | |
![]() | Match | |
![]() | ToString |
| Nombre | Descripción | |
|---|---|---|
![]() ![]() | _Attribute.GetIDsOfNames | |
![]() ![]() | _Attribute.GetTypeInfo | |
![]() ![]() | _Attribute.GetTypeInfoCount | Recupera el número de interfaces de tipo de información que suministra un objeto (0 ó 1) |
![]() ![]() | _Attribute.Invoke |
<%@ WebService Language="C#" class="BindingSample" %> using System; using System.Web.Services; using System.Web.Services.Protocols; // Binding is defined in this XML Web service and uses the default namespace. [ WebServiceBinding(Name="LocalBinding")] // Binding is defined in this XML Web service, but it is not a part of the default namespace. [ WebServiceBinding(Name="LocalBindingNonDefaultNamespace", Namespace="http://www.contoso.com/MyBinding" )] // Binding is defined on a remote server, but this XML Web service implements at least one operation in that binding. [ WebServiceBinding(Name="RemoteBinding", Namespace="http://www.contoso.com/MyBinding", Location="http://www.contoso.com/MySevice.asmx?wsdl")] public class BindingSample { [ SoapDocumentMethod(Binding="LocalBinding")] [ WebMethod() ] public string LocalBindingMethod() { return "Member of binding defined in this XML Web service and member of the default namespace"; } [ SoapDocumentMethod(Binding="LocalBindingNonDefaultNamespace")] [ WebMethod() ] public string LocalBindingNonDefaultNamespaceMethod() { return "Member of binding defined in this XML Web service, but a part of a different namespace"; } [ SoapDocumentMethod(Binding="RemoteBinding")] [ WebMethod() ] public string RemoteBindingMethod() { return "Member of a binding defined on another server"; } [ WebMethod() ] public string DefaultBindingMethod() { return "Member of the default binding"; } }
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (no se admite el rol Server Core), Windows Server 2008 R2 (se admite el rol Server Core con SP1 o versiones posteriores; no se admite Itanium)
.NET Framework no admite todas las versiones de todas las plataformas. Para obtener una lista de las versiones compatibles, vea Requisitos de sistema de .NET Framework.
