MetaData.ConvertSchemaStreamToCodeSourceStream Method (Boolean, String, Stream, ArrayList)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Converts the specified schema definition into C# proxy source code.

Namespace:   System.Runtime.Remoting.MetadataServices
Assembly:  System.Runtime.Remoting (in System.Runtime.Remoting.dll)

public static void ConvertSchemaStreamToCodeSourceStream(
	bool clientProxy,
	string outputDirectory,
	Stream inputStream,
	ArrayList outCodeStreamList


Type: System.Boolean

Indicates the type of proxy to generate. If true, generates a simple proxy (also known as wrapped proxy) that automatically loads the channels, exposes all the methods of the remote object, and provides access to the channel properties. If false, generates a transparent proxy that exposes all the methods of the remote object.

Type: System.String

The directory where the new C# source code files with the proxy are created.

Type: System.IO.Stream

The input stream that contains the schema definition in Web Services Description Language (WSDL) format.

Type: System.Collections.ArrayList

The list of file names for the code streams that are generated. Note that the ConvertSchemaStreamToCodeSourceStream method can create multiple source code streams.


If files with the specified names already exist, they are overwritten.

.NET Framework
Available since 1.1
Return to top