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]; ////// /// 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
- SafeLocalMemHandle.cs
- InputDevice.cs
- EntityDataSourceDataSelectionPanel.cs
- Version.cs
- DtrList.cs
- WebAdminConfigurationHelper.cs
- TileBrush.cs
- ListViewAutomationPeer.cs
- Literal.cs
- RoleService.cs
- PointAnimationUsingPath.cs
- InvalidProgramException.cs
- QualifiedId.cs
- UpDownBaseDesigner.cs
- RecommendedAsConfigurableAttribute.cs
- WindowsMenu.cs
- HttpBrowserCapabilitiesBase.cs
- EventProxy.cs
- AgileSafeNativeMemoryHandle.cs
- LoaderAllocator.cs
- StyleTypedPropertyAttribute.cs
- PopupEventArgs.cs
- HttpClientChannel.cs
- ImageFormat.cs
- HierarchicalDataBoundControl.cs
- ExpandSegmentCollection.cs
- SafeNativeMethods.cs
- DbConnectionPoolOptions.cs
- DataColumnMappingCollection.cs
- ObjectDataSourceView.cs
- BypassElement.cs
- ThicknessAnimationBase.cs
- DataGridViewCellParsingEventArgs.cs
- FragmentQueryKB.cs
- IProvider.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- TypeConverterHelper.cs
- FontUnit.cs
- EnvironmentPermission.cs
- ProfileGroupSettingsCollection.cs
- DataExchangeServiceBinder.cs
- TargetFrameworkUtil.cs
- CapabilitiesPattern.cs
- XmlProcessingInstruction.cs
- ProjectionPathSegment.cs
- DocumentViewerBaseAutomationPeer.cs
- basenumberconverter.cs
- TableCellCollection.cs
- XamlPointCollectionSerializer.cs
- InkCollectionBehavior.cs
- TabPanel.cs
- InputBuffer.cs
- TreeNodeMouseHoverEvent.cs
- DBConnection.cs
- PublisherMembershipCondition.cs
- FullTextState.cs
- AccessDataSourceView.cs
- UnionCodeGroup.cs
- _UncName.cs
- Timeline.cs
- CookielessHelper.cs
- MemoryStream.cs
- SQLInt64Storage.cs
- TimeoutValidationAttribute.cs
- CommandBinding.cs
- BamlLocalizer.cs
- ErrorsHelper.cs
- ContainerFilterService.cs
- XmlILAnnotation.cs
- MetadataStore.cs
- DelegateBodyWriter.cs
- shaperfactory.cs
- LoadedEvent.cs
- TreeWalkHelper.cs
- AppDomainInstanceProvider.cs
- HttpHostedTransportConfiguration.cs
- RuntimeConfigLKG.cs
- GridViewSelectEventArgs.cs
- TextInfo.cs
- PointAnimationUsingKeyFrames.cs
- contentDescriptor.cs
- StreamResourceInfo.cs
- CodeExporter.cs
- LongCountAggregationOperator.cs
- NativeObjectSecurity.cs
- ComponentRenameEvent.cs
- ContainerTracking.cs
- BinaryObjectInfo.cs
- ConversionHelper.cs
- StorageEndPropertyMapping.cs
- OperationParameterInfoCollection.cs
- ByteStorage.cs
- SignatureDescription.cs
- ToolCreatedEventArgs.cs
- SchemaMapping.cs
- MobileComponentEditorPage.cs
- DataListItemCollection.cs
- IsolatedStoragePermission.cs
- RoleManagerSection.cs
- XPathNavigator.cs