System.Web.Services.Description.ServiceDescriptionImporter.Import Method

Imports the specified ServiceDescriptionImporter.ServiceDescriptions values, that generates code as specified by the ServiceDescriptionImporter.Style property.

Syntax

public ServiceDescriptionImportWarnings Import (System.CodeDom.CodeNamespace codeNamespace, System.CodeDom.CodeCompileUnit codeCompileUnit)

Parameters

codeNamespace
The namespace into which the ServiceDescriptionImporter.ServiceDescriptions values are imported.
codeCompileUnit
The System.CodeDom.CodeCompileUnit instance in which the code that represents the ServiceDescriptionImporter.ServiceDescriptions value is generated.

Returns

A System.Web.Services.Description.ServiceDescriptionImportWarnings value that describes any error that occurred; or 0 if no error occurred.

Remarks

After you have specified the ServiceDescriptionImporter.ServiceDescriptions values to import and the ServiceDescriptionImporter.Style property of the code to generate, call the System.Web.Services.Description.Import method to initiate code generation.

Requirements

Namespace: System.Web.Services.Description
Assembly: System.Web.Services (in System.Web.Services.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0