Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / Web / System / Web / Services / Description / WebReference.cs / 1305376 / WebReference.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.Services.Description {
using System;
using System.Net;
using System.Web.Services.Description;
using System.IO;
using System.Xml;
using System.Xml.Schema;
using System.Web.Services.Protocols;
using System.Text;
using System.Collections;
using System.Collections.Specialized;
using System.Threading;
using System.CodeDom;
using System.Web.Services.Discovery;
///
///
/// [To be supplied.]
///
public sealed class WebReference {
CodeNamespace proxyCode;
DiscoveryClientDocumentCollection documents;
string appSettingUrlKey;
string appSettingBaseUrl;
string protocolName;
ServiceDescriptionImportWarnings warnings;
StringCollection validationWarnings;
///
///
/// [To be supplied.]
///
public WebReference(DiscoveryClientDocumentCollection documents, CodeNamespace proxyCode, string protocolName, string appSettingUrlKey, string appSettingBaseUrl) {
// parameter check
if (documents == null) {
throw new ArgumentNullException("documents");
}
if (proxyCode == null) {
// no namespace
throw new ArgumentNullException("proxyCode");
}
if (appSettingBaseUrl != null && appSettingUrlKey == null) {
throw new ArgumentNullException("appSettingUrlKey");
}
this.protocolName = protocolName;
this.appSettingUrlKey = appSettingUrlKey;
this.appSettingBaseUrl = appSettingBaseUrl;
this.documents = documents;
this.proxyCode = proxyCode;
}
///
///
/// [To be supplied.]
///
public WebReference(DiscoveryClientDocumentCollection documents, CodeNamespace proxyCode) : this(documents, proxyCode, null, null, null) {
}
///
///
/// [To be supplied.]
///
public WebReference(DiscoveryClientDocumentCollection documents, CodeNamespace proxyCode, string appSettingUrlKey, string appSettingBaseUrl)
: this(documents, proxyCode, null, appSettingUrlKey, appSettingBaseUrl) {
}
///
///
/// [To be supplied.]
///
public string AppSettingBaseUrl {
get { return appSettingBaseUrl; }
}
///
///
/// [To be supplied.]
///
public string AppSettingUrlKey {
get { return appSettingUrlKey; }
}
///
///
/// [To be supplied.]
///
public DiscoveryClientDocumentCollection Documents {
get {
return documents;
}
}
///
///
/// [To be supplied.]
///
public CodeNamespace ProxyCode
{
get { return proxyCode; }
}
///
///
/// [To be supplied.]
///
public StringCollection ValidationWarnings
{
get
{
if (validationWarnings == null)
{
validationWarnings = new StringCollection();
}
return validationWarnings;
}
}
///
///
/// [To be supplied.]
///
public ServiceDescriptionImportWarnings Warnings
{
get { return warnings; }
set { warnings = value; }
}
///
///
/// [To be supplied.]
///
public String ProtocolName
{
get { return protocolName == null ? string.Empty : protocolName; }
set { protocolName = value; }
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Vector3DAnimation.cs
- LayoutDump.cs
- Type.cs
- TextEffectCollection.cs
- EventSetter.cs
- AllMembershipCondition.cs
- TypeLibConverter.cs
- UserControlBuildProvider.cs
- ISAPIWorkerRequest.cs
- HMAC.cs
- RoleGroupCollection.cs
- FileDetails.cs
- CodeCompiler.cs
- CharacterMetricsDictionary.cs
- CDSsyncETWBCLProvider.cs
- XmlNamespaceDeclarationsAttribute.cs
- ComplexTypeEmitter.cs
- ZipIOExtraFieldPaddingElement.cs
- EventWaitHandle.cs
- AnyReturnReader.cs
- TemplateBindingExpressionConverter.cs
- CollectionViewGroupInternal.cs
- UriWriter.cs
- XamlParser.cs
- LocalizationComments.cs
- MailAddressCollection.cs
- DES.cs
- XhtmlBasicObjectListAdapter.cs
- ISO2022Encoding.cs
- Size.cs
- ActivityExecutionContext.cs
- MgmtConfigurationRecord.cs
- RemotingService.cs
- GridViewRowEventArgs.cs
- FactoryMaker.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- DataGridViewSortCompareEventArgs.cs
- RealProxy.cs
- KeyConstraint.cs
- GeneralTransform.cs
- BroadcastEventHelper.cs
- MenuItemBindingCollection.cs
- ListBoxItem.cs
- UserControlCodeDomTreeGenerator.cs
- _OverlappedAsyncResult.cs
- ToolStripContainer.cs
- InputChannel.cs
- SchemaTableColumn.cs
- Graph.cs
- ControlAdapter.cs
- InvalidAsynchronousStateException.cs
- ProcessModelSection.cs
- TreeViewCancelEvent.cs
- RectangleConverter.cs
- JsonSerializer.cs
- FactoryGenerator.cs
- SQLMoneyStorage.cs
- SystemException.cs
- SystemIPGlobalProperties.cs
- ProcessHostServerConfig.cs
- WebServicesDescriptionAttribute.cs
- XmlMembersMapping.cs
- StringToken.cs
- UpdateCommand.cs
- TargetControlTypeAttribute.cs
- HasCopySemanticsAttribute.cs
- CodeSubDirectoriesCollection.cs
- LinqToSqlWrapper.cs
- UrlMappingCollection.cs
- safesecurityhelperavalon.cs
- _ServiceNameStore.cs
- CodeChecksumPragma.cs
- dbdatarecord.cs
- UserPersonalizationStateInfo.cs
- Unit.cs
- LogManagementAsyncResult.cs
- controlskin.cs
- RoutedEventHandlerInfo.cs
- StylusPlugin.cs
- Storyboard.cs
- MetadataUtil.cs
- WebConfigurationHost.cs
- Transform.cs
- AppDomainProtocolHandler.cs
- Bitmap.cs
- ConcurrentQueue.cs
- MenuItemBindingCollection.cs
- SystemNetHelpers.cs
- NamespaceCollection.cs
- Speller.cs
- ServicePoint.cs
- AssociatedControlConverter.cs
- OleDbPropertySetGuid.cs
- FileDialogPermission.cs
- XmlUrlResolver.cs
- ActivationArguments.cs
- ToolStripDropDownMenu.cs
- SqlDataSourceSelectingEventArgs.cs
- CompilationPass2TaskInternal.cs
- autovalidator.cs