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
- XPathChildIterator.cs
- Page.cs
- DbMetaDataColumnNames.cs
- XmlSchemaComplexType.cs
- KerberosReceiverSecurityToken.cs
- FilePrompt.cs
- RawKeyboardInputReport.cs
- DesignerObjectListAdapter.cs
- ValueQuery.cs
- ToolboxItemFilterAttribute.cs
- DataGridAutoGeneratingColumnEventArgs.cs
- XmlLinkedNode.cs
- MulticastOption.cs
- GridViewHeaderRowPresenter.cs
- OleDbConnection.cs
- RTLAwareMessageBox.cs
- NGCPageContentSerializerAsync.cs
- OdbcConnection.cs
- WebPartConnection.cs
- TextView.cs
- WindowsComboBox.cs
- CommonDialog.cs
- ApplicationServicesHostFactory.cs
- OrderedHashRepartitionEnumerator.cs
- StateManagedCollection.cs
- SqlDataReaderSmi.cs
- BitmapEffectGeneralTransform.cs
- XmlSchemaSimpleContent.cs
- EmissiveMaterial.cs
- RSAPKCS1KeyExchangeFormatter.cs
- ApplicationSecurityManager.cs
- AdjustableArrowCap.cs
- CapiNative.cs
- ClockController.cs
- XsdDataContractExporter.cs
- DropDownList.cs
- XmlSchemaAll.cs
- StringCollection.cs
- CaseCqlBlock.cs
- ReadOnlyHierarchicalDataSource.cs
- ObjectItemCollection.cs
- TextServicesPropertyRanges.cs
- SqlServer2KCompatibilityAnnotation.cs
- BindingExpressionUncommonField.cs
- MetadataUtilsSmi.cs
- UriParserTemplates.cs
- ListQueryResults.cs
- ComplexObject.cs
- AnnotationComponentManager.cs
- HtmlWindow.cs
- NegotiateStream.cs
- DataListItem.cs
- SeekStoryboard.cs
- WebControl.cs
- XmlSubtreeReader.cs
- AssemblyFilter.cs
- diagnosticsswitches.cs
- QueryCacheManager.cs
- TypeDescriptor.cs
- SettingsPropertyWrongTypeException.cs
- COM2PropertyDescriptor.cs
- CqlLexerHelpers.cs
- FillRuleValidation.cs
- RichTextBoxAutomationPeer.cs
- GotoExpression.cs
- LifetimeServices.cs
- BlurBitmapEffect.cs
- BindableAttribute.cs
- SkewTransform.cs
- CacheVirtualItemsEvent.cs
- TextRenderingModeValidation.cs
- KnownAssemblyEntry.cs
- TimeSpanValidatorAttribute.cs
- EmptyImpersonationContext.cs
- PathFigure.cs
- SplitterEvent.cs
- TextBoxBase.cs
- SocketPermission.cs
- VoiceObjectToken.cs
- HashHelper.cs
- RuleSettings.cs
- GeneralTransform2DTo3DTo2D.cs
- mongolianshape.cs
- PropertyRef.cs
- SQLBoolean.cs
- SimpleRecyclingCache.cs
- TreeNodeBinding.cs
- FilterException.cs
- PolicyException.cs
- NavigationCommands.cs
- DataObjectSettingDataEventArgs.cs
- ResourceBinder.cs
- PersonalizationProviderHelper.cs
- OleServicesContext.cs
- ExpressionContext.cs
- CheckBoxAutomationPeer.cs
- wmiprovider.cs
- ISAPIWorkerRequest.cs
- AlternateViewCollection.cs
- PeerApplicationLaunchInfo.cs