WebReference Constructor (DiscoveryClientDocumentCollection^, CodeNamespace^, String^, String^)
.NET Framework (current version)
Initializes a new instance of the WebReference class with the given data.
Assembly: System.Web.Services (in System.Web.Services.dll)
public:
WebReference(
DiscoveryClientDocumentCollection^ documents,
CodeNamespace^ proxyCode,
String^ appSettingUrlKey,
String^ appSettingBaseUrl
)
Parameters
- documents
-
Type:
System.Web.Services.Discovery::DiscoveryClientDocumentCollection^
A DiscoveryClientDocumentCollection that specifies a collection of description documents.
- proxyCode
-
Type:
System.CodeDom::CodeNamespace^
A CodeNamespace that specifies a namespace for code compilation.
- appSettingUrlKey
-
Type:
System::String^
The URL key of the Web reference.
- appSettingBaseUrl
-
Type:
System::String^
The base URL of the Web reference.
The documents collection should contain only ServiceDescription and T:Sytem.Xml.Schema.XmlSchema objects; the GenerateWebReferences method is unable to interpret DiscoveryDocument objects.
.NET Framework
Available since 2.0
Available since 2.0
Show: