Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / Web / System / Web / Services / Discovery / DynamicDiscoveryDocument.cs / 1305376 / DynamicDiscoveryDocument.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.Services.Discovery {
using System;
using System.IO;
using System.Collections;
using System.Xml.Serialization;
using System.Text;
///
///
/// This represents a discovery file.
///
[XmlRoot("dynamicDiscovery", Namespace=DynamicDiscoveryDocument.Namespace)]
public sealed class DynamicDiscoveryDocument {
private ExcludePathInfo[] excludePaths = new ExcludePathInfo[0];
///
///
/// [To be supplied.]
///
public const string Namespace = "urn:schemas-dynamicdiscovery:disco.2000-03-17";
///
///
/// Default constructor.
///
public DynamicDiscoveryDocument() {
}
///
///
/// [To be supplied.]
///
[XmlElement("exclude", typeof(ExcludePathInfo))]
public ExcludePathInfo[] ExcludePaths {
get {
return excludePaths;
}
set {
if (value == null)
value = new ExcludePathInfo[0];
excludePaths = value;
}
}
///
///
/// Write this instance to a stream.
///
public void Write(Stream stream) {
XmlSerializer xmlSerializer = new XmlSerializer(typeof(DynamicDiscoveryDocument));
xmlSerializer.Serialize(new StreamWriter(stream, new UTF8Encoding(false)), this);
}
///
///
/// Read an instance of WebMethodsFile from a stream.
///
public static DynamicDiscoveryDocument Load(Stream stream) {
XmlSerializer xmlSerializer = new XmlSerializer(typeof(DynamicDiscoveryDocument));
return (DynamicDiscoveryDocument) xmlSerializer.Deserialize(stream);
}
}
}
// 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
- StorageMappingItemLoader.cs
- UInt32.cs
- RecognizerInfo.cs
- InvalidComObjectException.cs
- CodeConstructor.cs
- QueueProcessor.cs
- SqlRemoveConstantOrderBy.cs
- ObjectDataSourceChooseTypePanel.cs
- MoveSizeWinEventHandler.cs
- CounterSetInstance.cs
- OdbcParameter.cs
- ChannelSinkStacks.cs
- FloaterParaClient.cs
- PanelDesigner.cs
- DesignerView.cs
- NameHandler.cs
- ArrayHelper.cs
- NetPeerTcpBindingElement.cs
- SystemIPInterfaceProperties.cs
- ParameterCollection.cs
- ObfuscationAttribute.cs
- Menu.cs
- ReadOnlyHierarchicalDataSource.cs
- TextServicesCompartmentEventSink.cs
- FontFamilyIdentifier.cs
- XmlSchemaIdentityConstraint.cs
- ImpersonateTokenRef.cs
- Deserializer.cs
- hwndwrapper.cs
- DynamicObject.cs
- WebServiceAttribute.cs
- ShaderEffect.cs
- MemoryFailPoint.cs
- Transform3D.cs
- LoginUtil.cs
- SymmetricKeyWrap.cs
- X509ChainPolicy.cs
- Bold.cs
- TimeSpanConverter.cs
- FormatControl.cs
- XPathNavigatorReader.cs
- WebPartCloseVerb.cs
- DateTimeOffsetStorage.cs
- ConnectionPointCookie.cs
- ObjectDataSourceDisposingEventArgs.cs
- IntranetCredentialPolicy.cs
- DispatcherFrame.cs
- EndPoint.cs
- BridgeDataRecord.cs
- MachineKeyConverter.cs
- TiffBitmapDecoder.cs
- DNS.cs
- CommonXSendMessage.cs
- Activity.cs
- coordinator.cs
- PersianCalendar.cs
- NameObjectCollectionBase.cs
- LayoutEngine.cs
- UInt64Converter.cs
- DispatcherTimer.cs
- SoapDocumentMethodAttribute.cs
- Utils.cs
- GridViewRowPresenter.cs
- Material.cs
- UpdatePanelTrigger.cs
- GradientBrush.cs
- EndpointIdentityExtension.cs
- DataGridViewAccessibleObject.cs
- KnownBoxes.cs
- TextTrailingWordEllipsis.cs
- XmlFormatExtensionAttribute.cs
- CriticalExceptions.cs
- CustomLineCap.cs
- KeyManager.cs
- ValidationVisibilityAttribute.cs
- RegionInfo.cs
- SafeThemeHandle.cs
- Label.cs
- GeometryGroup.cs
- UrlAuthorizationModule.cs
- DoubleAverageAggregationOperator.cs
- ZipIOExtraFieldPaddingElement.cs
- ToolStripOverflow.cs
- ContractHandle.cs
- DataBindingCollectionConverter.cs
- AnimationClock.cs
- Control.cs
- DataGridViewRowEventArgs.cs
- CqlErrorHelper.cs
- ControlBuilder.cs
- ProfileParameter.cs
- ListViewTableRow.cs
- oledbmetadatacolumnnames.cs
- BehaviorService.cs
- PtsPage.cs
- MediaTimeline.cs
- LoginName.cs
- MobileListItem.cs
- TextRangeProviderWrapper.cs
- CalendarDay.cs