Code:
/ 4.0 / 4.0 / 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; ////// /// 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. //------------------------------------------------------------------------------ //[To be supplied.] ///// 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; ////// /// 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.[To be supplied.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TreeNode.cs
- ContextInformation.cs
- CardSpaceException.cs
- SafeViewOfFileHandle.cs
- SecurityManager.cs
- RoutingExtension.cs
- SaveFileDialog.cs
- List.cs
- RequestResizeEvent.cs
- NetworkInformationException.cs
- TableDetailsRow.cs
- ThreadExceptionEvent.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- EntityModelSchemaGenerator.cs
- DropAnimation.xaml.cs
- SafeRightsManagementEnvironmentHandle.cs
- RangeValueProviderWrapper.cs
- RouteItem.cs
- ToolStripMenuItem.cs
- SerializationSectionGroup.cs
- DiscreteKeyFrames.cs
- ScrollProperties.cs
- DirectoryGroupQuery.cs
- mediaeventargs.cs
- AggregateException.cs
- WorkflowInstanceQuery.cs
- AssemblyCollection.cs
- OdbcParameterCollection.cs
- OleDbEnumerator.cs
- WebRequest.cs
- Wizard.cs
- LifetimeServices.cs
- Int32RectConverter.cs
- ClientRoleProvider.cs
- FormViewPagerRow.cs
- SqlDataSource.cs
- PropertyChangedEventArgs.cs
- Transform3D.cs
- ConfigXmlText.cs
- DesignerAttribute.cs
- ListViewUpdateEventArgs.cs
- CharEnumerator.cs
- DataGridCell.cs
- Utilities.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- PartitionResolver.cs
- SynchronizationLockException.cs
- wgx_sdk_version.cs
- Object.cs
- IImplicitResourceProvider.cs
- Debug.cs
- ListViewAutomationPeer.cs
- CodeRemoveEventStatement.cs
- ExeConfigurationFileMap.cs
- StylusSystemGestureEventArgs.cs
- XmlElementAttributes.cs
- ActivityBuilderXamlWriter.cs
- MetabaseSettings.cs
- RoleBoolean.cs
- XmlDocumentFragment.cs
- RuleSetCollection.cs
- ProviderSettingsCollection.cs
- CombinedTcpChannel.cs
- FacetDescription.cs
- DataGridBoolColumn.cs
- WorkItem.cs
- KnownTypesHelper.cs
- FrameDimension.cs
- DataGridViewColumnStateChangedEventArgs.cs
- DSASignatureDeformatter.cs
- ColumnResizeUndoUnit.cs
- SecUtil.cs
- HMACSHA256.cs
- SqlBulkCopyColumnMapping.cs
- SessionStateItemCollection.cs
- TypeInfo.cs
- PlanCompiler.cs
- SyndicationItem.cs
- AnimationException.cs
- FileStream.cs
- COSERVERINFO.cs
- DataGridViewCellCancelEventArgs.cs
- RouteData.cs
- DesignerLoader.cs
- _ShellExpression.cs
- invalidudtexception.cs
- KeyValuePairs.cs
- DataSourceHelper.cs
- DataSourceListEditor.cs
- CreateSequenceResponse.cs
- HttpModulesSection.cs
- PathSegment.cs
- CompletionProxy.cs
- DBDataPermissionAttribute.cs
- AxHost.cs
- MasterPage.cs
- RoutedEventValueSerializer.cs
- FactoryGenerator.cs
- ProtectedConfigurationProviderCollection.cs
- ContentPresenter.cs