Share via


MetaData.ConvertSchemaStreamToCodeSourceStream 方法

定義

將指定的結構描述定義轉換為 C# 原始程式碼 Proxy,這可以接著被編譯成 Runtime Proxy 組件。

多載

ConvertSchemaStreamToCodeSourceStream(Boolean, String, Stream, ArrayList)

將指定的結構描述定義編譯成 C# Proxy 原始程式碼。

ConvertSchemaStreamToCodeSourceStream(Boolean, String, Stream, ArrayList, String)

將指定的結構描述定義轉換成位於指定 URL 上之遠端物件的 C# Proxy 原始程式碼。

ConvertSchemaStreamToCodeSourceStream(Boolean, String, Stream, ArrayList, String, String)

將指定的結構描述定義轉換成遠端物件 (位於指定 URL 和提供的類別命名空間) 的 C# Proxy 原始程式碼。

ConvertSchemaStreamToCodeSourceStream(Boolean, String, Stream, ArrayList)

將指定的結構描述定義編譯成 C# Proxy 原始程式碼。

public:
 static void ConvertSchemaStreamToCodeSourceStream(bool clientProxy, System::String ^ outputDirectory, System::IO::Stream ^ inputStream, System::Collections::ArrayList ^ outCodeStreamList);
public static void ConvertSchemaStreamToCodeSourceStream (bool clientProxy, string outputDirectory, System.IO.Stream inputStream, System.Collections.ArrayList outCodeStreamList);
static member ConvertSchemaStreamToCodeSourceStream : bool * string * System.IO.Stream * System.Collections.ArrayList -> unit
Public Shared Sub ConvertSchemaStreamToCodeSourceStream (clientProxy As Boolean, outputDirectory As String, inputStream As Stream, outCodeStreamList As ArrayList)

參數

clientProxy
Boolean

指示要產生的 Proxy 的型別。 如果為 true,則產生會自動載入通道的簡單 Proxy (也稱為包裝的 Proxy)、公開遠端物件的所有方法,和提供對通道屬性的存取。 如果為 false,則產生會公開遠端物件所有方法的透明 Proxy。

outputDirectory
String

具有 Proxy 的新 C# 原始程式碼檔案被建立時所在的目錄。

inputStream
Stream

輸入資料流,其包含 Web 服務描述語言 (WSDL) 格式的結構描述定義。

outCodeStreamList
ArrayList

所產生程式碼資料流的檔案名稱清單。 注意,ConvertSchemaStreamToCodeSourceStream(Boolean, String, Stream, ArrayList, String, String) 方法可以建立多個原始程式碼資料流。

備註

注意

如果具有指定名稱的檔案已經存在,則會覆寫它們。

適用於

ConvertSchemaStreamToCodeSourceStream(Boolean, String, Stream, ArrayList, String)

將指定的結構描述定義轉換成位於指定 URL 上之遠端物件的 C# Proxy 原始程式碼。

public:
 static void ConvertSchemaStreamToCodeSourceStream(bool clientProxy, System::String ^ outputDirectory, System::IO::Stream ^ inputStream, System::Collections::ArrayList ^ outCodeStreamList, System::String ^ proxyUrl);
public static void ConvertSchemaStreamToCodeSourceStream (bool clientProxy, string outputDirectory, System.IO.Stream inputStream, System.Collections.ArrayList outCodeStreamList, string proxyUrl);
static member ConvertSchemaStreamToCodeSourceStream : bool * string * System.IO.Stream * System.Collections.ArrayList * string -> unit
Public Shared Sub ConvertSchemaStreamToCodeSourceStream (clientProxy As Boolean, outputDirectory As String, inputStream As Stream, outCodeStreamList As ArrayList, proxyUrl As String)

參數

clientProxy
Boolean

指示要產生的 Proxy 的型別。 如果為 true,則產生會自動載入通道的簡單 Proxy (也稱為包裝的 Proxy)、公開遠端物件的所有方法,和提供對通道屬性的存取。 如果為 false,則產生會公開遠端物件所有方法的透明 Proxy。

outputDirectory
String

具有 Proxy 的新 C# 原始程式碼檔案被建立時所在的目錄。

inputStream
Stream

輸入資料流,其包含 Web 服務描述語言 (WSDL) 格式的結構描述定義。

outCodeStreamList
ArrayList

所產生程式碼資料流的檔案名稱清單。 注意,ConvertSchemaStreamToCodeSourceStream(Boolean, String, Stream, ArrayList, String, String) 方法可以建立多個原始程式碼資料流。

proxyUrl
String

URL,新 Proxy 所表示的遠端目標物件將位於此處。

備註

注意

如果具有指定名稱的檔案已經存在,則會覆寫它們。

適用於

ConvertSchemaStreamToCodeSourceStream(Boolean, String, Stream, ArrayList, String, String)

將指定的結構描述定義轉換成遠端物件 (位於指定 URL 和提供的類別命名空間) 的 C# Proxy 原始程式碼。

public:
 static void ConvertSchemaStreamToCodeSourceStream(bool clientProxy, System::String ^ outputDirectory, System::IO::Stream ^ inputStream, System::Collections::ArrayList ^ outCodeStreamList, System::String ^ proxyUrl, System::String ^ proxyNamespace);
public static void ConvertSchemaStreamToCodeSourceStream (bool clientProxy, string outputDirectory, System.IO.Stream inputStream, System.Collections.ArrayList outCodeStreamList, string proxyUrl, string proxyNamespace);
static member ConvertSchemaStreamToCodeSourceStream : bool * string * System.IO.Stream * System.Collections.ArrayList * string * string -> unit
Public Shared Sub ConvertSchemaStreamToCodeSourceStream (clientProxy As Boolean, outputDirectory As String, inputStream As Stream, outCodeStreamList As ArrayList, proxyUrl As String, proxyNamespace As String)

參數

clientProxy
Boolean

指示要產生的 Proxy 的型別。 如果為 true,則產生會自動載入通道的簡單 Proxy (也稱為包裝的 Proxy)、公開遠端物件的所有方法,和提供對通道屬性的存取。 如果為 false,則產生會公開遠端物件所有方法的透明 Proxy。

outputDirectory
String

具有 Proxy 的新 C# 原始程式碼檔案被建立時所在的目錄。

inputStream
Stream

輸入資料流,含有 Web 服務描述語言 (WSDL) 格式的結構描述定義。

outCodeStreamList
ArrayList

所產生程式碼資料流的檔案名稱清單。 注意,ConvertSchemaStreamToCodeSourceStream(Boolean, String, Stream, ArrayList, String, String) 方法可以建立多個原始程式碼資料流。

proxyUrl
String

URL,新 Proxy 所表示的遠端目標物件將位於此處。

proxyNamespace
String

新建立的 Proxy 的命名空間。

備註

注意

如果具有指定名稱的檔案已經存在,則會覆寫它們。

適用於