|
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
|
WebMethodAttribute (Clase)
Espacio de nombres: System.Web.Services
Ensamblado: System.Web.Services (en System.Web.Services.dll)
El tipo WebMethodAttribute expone los siguientes miembros.
| Nombre | Descripción | |
|---|---|---|
![]() | WebMethodAttribute() | |
![]() | WebMethodAttribute(Boolean) | |
![]() | WebMethodAttribute(Boolean, TransactionOption) | |
![]() | WebMethodAttribute(Boolean, TransactionOption, Int32) | |
![]() | WebMethodAttribute(Boolean, TransactionOption, Int32, Boolean) |
| Nombre | Descripción | |
|---|---|---|
![]() | BufferResponse | |
![]() | CacheDuration | |
![]() | Description | |
![]() | EnableSession | |
![]() | MessageName | |
![]() | TransactionOption | |
![]() | 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 |
| Topic | Location |
|---|---|
| Tutorial: Crear y usar un servicio Web ASP.NET en Visual Web Developer | Generar aplicaciones Web ASP .NET en Visual Studio |
| Tutorial: Crear y usar un servicio Web ASP.NET en Visual Web Developer | Generar aplicaciones con Visual Web Developer |
<%@ WebService Language="C#" Class="Util"%> using System; using System.Web.Services; public class Util: WebService { public string GetUserName() { return User.Identity.Name; } [ WebMethod(Description="Obtains the Server Machine Name", EnableSession=true)] public string GetMachineName() { return Server.MachineName; } }
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.
