This documentation is archived and is not being maintained.

ProxyGenerator Class

Represents a proxy code generator.

Namespace:  System.Web.Script.Services
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public static class ProxyGenerator

Use the GetClientProxyScript method to retrieve the ECMAScript (JavaScript) code that is used to generate the proxy class for a Web service, for a Windows Communication Foundation (WCF) service, or for static page methods that have the WebMethodAttribute attribute applied. 


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5