Code:
/ 4.0 / 4.0 / 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]; ////// /// public const string Namespace = "urn:schemas-dynamicdiscovery:disco.2000-03-17"; ///[To be supplied.] ////// /// Default constructor. /// public DynamicDiscoveryDocument() { } ////// /// [XmlElement("exclude", typeof(ExcludePathInfo))] public ExcludePathInfo[] ExcludePaths { get { return excludePaths; } set { if (value == null) value = new ExcludePathInfo[0]; excludePaths = value; } } ///[To be supplied.] ////// /// 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. //------------------------------------------------------------------------------ //// 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]; ////// /// public const string Namespace = "urn:schemas-dynamicdiscovery:disco.2000-03-17"; ///[To be supplied.] ////// /// Default constructor. /// public DynamicDiscoveryDocument() { } ////// /// [XmlElement("exclude", typeof(ExcludePathInfo))] public ExcludePathInfo[] ExcludePaths { get { return excludePaths; } set { if (value == null) value = new ExcludePathInfo[0]; excludePaths = value; } } ///[To be supplied.] ////// /// 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
- PrintSystemException.cs
- ReaderWriterLock.cs
- FormViewDeleteEventArgs.cs
- WebBrowsableAttribute.cs
- ToolboxDataAttribute.cs
- COM2ExtendedBrowsingHandler.cs
- RuleInfoComparer.cs
- FixedSOMImage.cs
- InstancePersistenceCommand.cs
- PropertyMetadata.cs
- SQLInt32Storage.cs
- SHA512Managed.cs
- InvalidFilterCriteriaException.cs
- ServiceEndpointElement.cs
- ProjectionCamera.cs
- DropShadowEffect.cs
- ConnectionOrientedTransportChannelFactory.cs
- HelpProvider.cs
- SearchForVirtualItemEventArgs.cs
- SHA1CryptoServiceProvider.cs
- WebBrowserContainer.cs
- XhtmlBasicObjectListAdapter.cs
- RolePrincipal.cs
- Splitter.cs
- RemoteWebConfigurationHostStream.cs
- FilterQuery.cs
- ServiceDiscoveryElement.cs
- SqlConnection.cs
- FacetChecker.cs
- PresentationTraceSources.cs
- BlurEffect.cs
- BatchServiceHost.cs
- TreeViewEvent.cs
- Matrix3DValueSerializer.cs
- Lease.cs
- AuthenticateEventArgs.cs
- TableProviderWrapper.cs
- XmlAttributeCache.cs
- PageWrapper.cs
- FixedTextContainer.cs
- OdbcFactory.cs
- EntitySetDataBindingList.cs
- BitmapDownload.cs
- SecondaryViewProvider.cs
- DoubleAnimationUsingPath.cs
- InputLanguageEventArgs.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- ConsumerConnectionPointCollection.cs
- InternalsVisibleToAttribute.cs
- MasterPage.cs
- Currency.cs
- Quad.cs
- CodeCatchClauseCollection.cs
- SizeIndependentAnimationStorage.cs
- ContainerUtilities.cs
- DynamicILGenerator.cs
- DrawingServices.cs
- StagingAreaInputItem.cs
- ObjectDataProvider.cs
- LongTypeConverter.cs
- Helpers.cs
- ExtendedPropertiesHandler.cs
- objectquery_tresulttype.cs
- BufferedGraphics.cs
- XmlEnumAttribute.cs
- UIElement.cs
- COM2PictureConverter.cs
- ToolStripPanel.cs
- ParameterCollection.cs
- CodeSubDirectory.cs
- IgnoreSection.cs
- ReflectionPermission.cs
- SQLMoneyStorage.cs
- BaseCodeDomTreeGenerator.cs
- Splitter.cs
- NetTcpSecurity.cs
- UserMapPath.cs
- ErrorFormatter.cs
- ParallelTimeline.cs
- BitmapCacheBrush.cs
- BaseTemplatedMobileComponentEditor.cs
- InvokeMethodDesigner.xaml.cs
- MailBnfHelper.cs
- WeakEventTable.cs
- TryExpression.cs
- TraceSwitch.cs
- sortedlist.cs
- EditorPartCollection.cs
- WebHttpBindingElement.cs
- GradientStopCollection.cs
- BoundColumn.cs
- RoleGroupCollection.cs
- Encoding.cs
- EngineSite.cs
- EpmSourceTree.cs
- DocumentPageViewAutomationPeer.cs
- CookieHandler.cs
- BidOverLoads.cs
- RemotingSurrogateSelector.cs
- HttpRequestCacheValidator.cs