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
- BooleanStorage.cs
- ResourceWriter.cs
- CompileXomlTask.cs
- SerializationException.cs
- ItemDragEvent.cs
- DataServiceEntityAttribute.cs
- TransformGroup.cs
- Qualifier.cs
- XmlHierarchicalDataSourceView.cs
- ListItemDetailViewAttribute.cs
- HttpStreamFormatter.cs
- CultureTable.cs
- SystemWebCachingSectionGroup.cs
- UserPreferenceChangedEventArgs.cs
- StylesEditorDialog.cs
- ObjectViewEntityCollectionData.cs
- GC.cs
- DateTimeSerializationSection.cs
- Merger.cs
- _SslStream.cs
- DBProviderConfigurationHandler.cs
- TableHeaderCell.cs
- RoleBoolean.cs
- ProviderBase.cs
- ConfigurationSettings.cs
- SqlRemoveConstantOrderBy.cs
- webeventbuffer.cs
- DbConnectionStringBuilder.cs
- FlowDocumentReader.cs
- ErrorTableItemStyle.cs
- ValidatorCollection.cs
- HttpContext.cs
- JournalEntry.cs
- ImageSourceValueSerializer.cs
- RawUIStateInputReport.cs
- BindingMAnagerBase.cs
- DiagnosticsConfigurationHandler.cs
- UnsafeNativeMethods.cs
- Process.cs
- XmlFormatExtensionAttribute.cs
- DetailsViewDeleteEventArgs.cs
- EncryptedKey.cs
- ThumbButtonInfoCollection.cs
- TextRunCache.cs
- StylusCollection.cs
- ControlValuePropertyAttribute.cs
- OrderPreservingMergeHelper.cs
- Base64Encoder.cs
- BuilderPropertyEntry.cs
- KeyConverter.cs
- ModelPropertyImpl.cs
- LoginUtil.cs
- PauseStoryboard.cs
- SQLMoney.cs
- PieceDirectory.cs
- CapiSafeHandles.cs
- COM2IDispatchConverter.cs
- TaskFileService.cs
- SolidBrush.cs
- NavigatorInput.cs
- HttpListenerTimeoutManager.cs
- safelink.cs
- DataGridBoolColumn.cs
- DBAsyncResult.cs
- DataGridrowEditEndingEventArgs.cs
- WebDescriptionAttribute.cs
- AspNetCompatibilityRequirementsMode.cs
- Point3DIndependentAnimationStorage.cs
- SpoolingTaskBase.cs
- StringExpressionSet.cs
- Application.cs
- SqlProviderManifest.cs
- WindowCollection.cs
- RouteTable.cs
- _ListenerResponseStream.cs
- CompositeDataBoundControl.cs
- FastPropertyAccessor.cs
- ComboBoxHelper.cs
- CacheMode.cs
- XpsViewerException.cs
- ToolStripItemImageRenderEventArgs.cs
- DebugView.cs
- Activator.cs
- SystemIcmpV6Statistics.cs
- FontClient.cs
- ReachPageContentSerializerAsync.cs
- ToggleButtonAutomationPeer.cs
- MSHTMLHost.cs
- ConstraintCollection.cs
- QuadraticBezierSegment.cs
- AudioFormatConverter.cs
- MetafileHeaderEmf.cs
- ClientSettingsStore.cs
- LeafCellTreeNode.cs
- WebPartConnectVerb.cs
- CryptoApi.cs
- ImageList.cs
- MD5CryptoServiceProvider.cs
- pingexception.cs
- AuthenticationSchemesHelper.cs