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];
///
///
/// [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.
//------------------------------------------------------------------------------
//
// 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
- PackageRelationship.cs
- FontStretchConverter.cs
- ChameleonKey.cs
- FixedSOMElement.cs
- SafeUserTokenHandle.cs
- ViewValidator.cs
- MatrixCamera.cs
- RootProfilePropertySettingsCollection.cs
- LinqDataSourceDeleteEventArgs.cs
- EntityContainerEmitter.cs
- XmlSchema.cs
- HostingEnvironmentSection.cs
- Item.cs
- CompilerGeneratedAttribute.cs
- printdlgexmarshaler.cs
- SafeNativeMethods.cs
- HtmlWindow.cs
- ScaleTransform3D.cs
- TreeViewTemplateSelector.cs
- ClosableStream.cs
- ClientConfigurationHost.cs
- ScriptingJsonSerializationSection.cs
- entityreference_tresulttype.cs
- StronglyTypedResourceBuilder.cs
- ModifiableIteratorCollection.cs
- BitmapSource.cs
- EdmFunction.cs
- RtfControls.cs
- CacheSection.cs
- FilterableAttribute.cs
- XmlnsDictionary.cs
- EntityDataSourceState.cs
- ArgIterator.cs
- SafeFileHandle.cs
- SqlCrossApplyToCrossJoin.cs
- EntityDataSourceChangingEventArgs.cs
- ExpressionVisitor.cs
- PropertyReference.cs
- ConfigurationManagerHelperFactory.cs
- HtmlFormWrapper.cs
- SafeIUnknown.cs
- DataRelationPropertyDescriptor.cs
- ThemeInfoAttribute.cs
- RegistrationServices.cs
- Renderer.cs
- AppDomainProtocolHandler.cs
- LocalsItemDescription.cs
- ClientTargetCollection.cs
- DropDownList.cs
- ProfileGroupSettings.cs
- BaseCollection.cs
- Axis.cs
- ToggleButton.cs
- SQLRoleProvider.cs
- Brush.cs
- AssemblyUtil.cs
- MessageVersionConverter.cs
- CompilerError.cs
- DataGridViewImageColumn.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- PeerCollaboration.cs
- RegexGroupCollection.cs
- TextSyndicationContentKindHelper.cs
- SmiMetaData.cs
- XmlElement.cs
- Encoder.cs
- XamlStyleSerializer.cs
- SQLSingle.cs
- Run.cs
- UpdateCompiler.cs
- RSAOAEPKeyExchangeDeformatter.cs
- ParameterToken.cs
- SqlRowUpdatedEvent.cs
- SafeThreadHandle.cs
- LineVisual.cs
- BaseTemplateParser.cs
- LinkedResourceCollection.cs
- ToolboxBitmapAttribute.cs
- cookiecontainer.cs
- XPathScanner.cs
- DocumentCollection.cs
- SmiEventStream.cs
- AndCondition.cs
- WebPartHeaderCloseVerb.cs
- DataGridTextColumn.cs
- ObjectDataSourceEventArgs.cs
- PropertyItem.cs
- DecimalAnimationUsingKeyFrames.cs
- EdmItemCollection.OcAssemblyCache.cs
- BindingsCollection.cs
- DataColumnPropertyDescriptor.cs
- TypeToken.cs
- OdbcRowUpdatingEvent.cs
- XPathCompileException.cs
- UriTemplateMatch.cs
- Accessible.cs
- SqlRecordBuffer.cs
- SplitterCancelEvent.cs
- HttpWebResponse.cs
- _HeaderInfo.cs