Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Description / MetadataReference.cs / 1 / MetadataReference.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel.Description { using System; using System.ServiceModel; using System.Collections.Generic; using System.Text; using System.Xml; using System.Xml.Serialization; using System.Collections.ObjectModel; using WsdlNS = System.Web.Services.Description; using System.ServiceModel.Channels; [XmlRoot(ElementName = MetadataStrings.MetadataExchangeStrings.MetadataReference, Namespace = MetadataStrings.MetadataExchangeStrings.Namespace)] public class MetadataReference : IXmlSerializable { EndpointAddress address; AddressingVersion addressVersion; Collectionattributes = new Collection (); static XmlDocument Document = new XmlDocument(); public MetadataReference() { } public MetadataReference(EndpointAddress address, AddressingVersion addressVersion) { this.address = address; this.addressVersion = addressVersion; } public EndpointAddress Address { get { return this.address; } set { this.address = value; } } public AddressingVersion AddressVersion { get { return this.addressVersion; } set { this.addressVersion = value; } } System.Xml.Schema.XmlSchema IXmlSerializable.GetSchema() { return null; } void IXmlSerializable.ReadXml(XmlReader reader) { this.address = EndpointAddress.ReadFrom(XmlDictionaryReader.CreateDictionaryReader(reader), out this.addressVersion); } void IXmlSerializable.WriteXml(XmlWriter writer) { if (address != null) { address.WriteContentsTo(this.addressVersion, writer); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DiscoveryDocumentLinksPattern.cs
- LicenseException.cs
- OSFeature.cs
- GridViewHeaderRowPresenter.cs
- XmlILTrace.cs
- DefaultAsyncDataDispatcher.cs
- AsyncResult.cs
- StringSource.cs
- BamlCollectionHolder.cs
- DataGridViewColumnCollection.cs
- SchemaTableColumn.cs
- Exceptions.cs
- RadioButtonList.cs
- XmlHierarchicalDataSourceView.cs
- GridPattern.cs
- ISAPIApplicationHost.cs
- AspProxy.cs
- DbDataAdapter.cs
- XmlDeclaration.cs
- DrawingContextWalker.cs
- DynamicResourceExtensionConverter.cs
- DbConnectionPool.cs
- PolyBezierSegment.cs
- BaseParagraph.cs
- SamlDoNotCacheCondition.cs
- TargetConverter.cs
- WebCategoryAttribute.cs
- HtmlShimManager.cs
- Vars.cs
- DataGridViewCellCollection.cs
- PageStatePersister.cs
- SystemDropShadowChrome.cs
- WorkflowServiceInstance.cs
- ConnectorSelectionGlyph.cs
- AssemblyAttributesGoHere.cs
- CustomAttributeBuilder.cs
- UrlAuthFailedErrorFormatter.cs
- TextContainerHelper.cs
- ObjectTag.cs
- TimeZone.cs
- Calendar.cs
- WebPartConnectionsConfigureVerb.cs
- DataColumnPropertyDescriptor.cs
- HandlerFactoryCache.cs
- ToolStripCollectionEditor.cs
- MemberInfoSerializationHolder.cs
- InternalUserCancelledException.cs
- RangeBase.cs
- HttpRuntime.cs
- BindingExpressionUncommonField.cs
- MarkedHighlightComponent.cs
- DataGridHelper.cs
- WebPartConnectionsConfigureVerb.cs
- UntypedNullExpression.cs
- PhonemeConverter.cs
- WebProxyScriptElement.cs
- FontUnit.cs
- SystemException.cs
- UIElementParagraph.cs
- CompilationLock.cs
- SoapIncludeAttribute.cs
- OdbcPermission.cs
- LinkedResource.cs
- CheckBox.cs
- SelectionChangedEventArgs.cs
- MsmqIntegrationReceiveParameters.cs
- EmbeddedMailObjectsCollection.cs
- TypeConverter.cs
- AttributeEmitter.cs
- TimeSpanStorage.cs
- MainMenu.cs
- CollectionTypeElement.cs
- MenuRenderer.cs
- SQLSingleStorage.cs
- ResourceSet.cs
- AutoScrollHelper.cs
- MemoryStream.cs
- SectionXmlInfo.cs
- COM2ComponentEditor.cs
- XmlSchemaAny.cs
- UInt16Storage.cs
- InvalidPropValue.cs
- XmlReaderSettings.cs
- DataGridViewAccessibleObject.cs
- AspCompat.cs
- ExceptQueryOperator.cs
- DocumentXPathNavigator.cs
- DbParameterCollection.cs
- ReceiveCompletedEventArgs.cs
- RawStylusActions.cs
- diagnosticsswitches.cs
- ColumnMapVisitor.cs
- PolyBezierSegmentFigureLogic.cs
- StorageMappingFragment.cs
- _CacheStreams.cs
- Math.cs
- ModifierKeysConverter.cs
- CompilerLocalReference.cs
- EmbeddedMailObjectsCollection.cs
- Publisher.cs