This documentation is archived and is not being maintained.

WCFBuildProvider::GenerateCode Method

Generates the service proxy class source code and adds it to the specified assembly builder.

Namespace:  System.Web.Compilation
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

public:
virtual void GenerateCode(
	AssemblyBuilder^ assemblyBuilder
) override

Parameters

assemblyBuilder
Type: System.Web.Compilation::AssemblyBuilder

An instance of the AssemblyBuilder object that the generated proxy code must be added to. This instance is provided by ASP.NET at run time.

This method searches for .svcmap files in the Web application root directory. If files are found, the method generates the source code of a proxy class for the related services into the specified assemblyBuilder.

Notes to Inheritors:

Typically, this method parses the .svcmap mapping files and adds the generated source code to the specified AssemblyBuilder object. You can contribute source code to the assembly in the form of a TextWriter object or a CodeDOM graph.

For more information, see BuildProvider.

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
Show: