This documentation is archived and is not being maintained.

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

Converts the specified schema definition into C# proxy source code for a remote object that is located at the specified URL.

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, 
	String^ proxyUrl
)

Parameters

clientProxy
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.
outputDirectory
Type: System::String
The directory where the new C# source code files with the proxy are created.
inputStream
Type: System.IO::Stream
The input stream that contains the schema definition in Web Services Description Language (WSDL) format.
outCodeStreamList
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.
proxyUrl
Type: System::String
The URL where the target remote object that is represented by the new proxy will be located.

NoteNote

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

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: