Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.ServiceModel.Discovery / System / ServiceModel / Discovery / Version11 / EndpointDiscoveryMetadata11.cs / 1305376 / EndpointDiscoveryMetadata11.cs
//----------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------
namespace System.ServiceModel.Discovery.Version11
{
using System.Runtime;
using System.Xml;
using System.Xml.Schema;
using System.Xml.Serialization;
[XmlSchemaProvider("GetSchema")]
[Fx.Tag.XamlVisible(false)]
public class EndpointDiscoveryMetadata11 : IXmlSerializable
{
EndpointDiscoveryMetadata endpointDiscoveryMetadata;
EndpointDiscoveryMetadata11()
{
endpointDiscoveryMetadata = new EndpointDiscoveryMetadata();
}
EndpointDiscoveryMetadata11(EndpointDiscoveryMetadata endpointDiscoveryMetadata)
{
this.endpointDiscoveryMetadata = endpointDiscoveryMetadata;
}
public static EndpointDiscoveryMetadata11 FromEndpointDiscoveryMetadata(EndpointDiscoveryMetadata endpointDiscoveryMetadata)
{
if (endpointDiscoveryMetadata == null)
{
throw FxTrace.Exception.ArgumentNull("endpointDiscoveryMetadata");
}
return new EndpointDiscoveryMetadata11(endpointDiscoveryMetadata);
}
public static XmlQualifiedName GetSchema(XmlSchemaSet schemaSet)
{
if (schemaSet == null)
{
throw FxTrace.Exception.ArgumentNull("schemaSet");
}
return SchemaUtility.EnsureProbeMatchSchema(DiscoveryVersion.WSDiscovery11, schemaSet);
}
public EndpointDiscoveryMetadata ToEndpointDiscoveryMetadata()
{
return this.endpointDiscoveryMetadata;
}
public XmlSchema GetSchema()
{
return null;
}
[Fx.Tag.InheritThrows(From = "ReadFrom", FromDeclaringType = typeof(EndpointDiscoveryMetadata))]
public void ReadXml(XmlReader reader)
{
this.endpointDiscoveryMetadata.ReadFrom(DiscoveryVersion.WSDiscovery11, reader);
}
public void WriteXml(XmlWriter writer)
{
this.endpointDiscoveryMetadata.WriteTo(DiscoveryVersion.WSDiscovery11, writer);
}
}
}
// 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
- MetadataCache.cs
- EntityDataSourceDataSelection.cs
- KeyValuePairs.cs
- ArgumentsParser.cs
- Vector3DAnimationUsingKeyFrames.cs
- StrokeFIndices.cs
- TableRowCollection.cs
- COMException.cs
- DataBindingValueUIHandler.cs
- SecurityKeyIdentifier.cs
- UriParserTemplates.cs
- StateRuntime.cs
- NumericExpr.cs
- MetadataPropertyCollection.cs
- UnauthorizedWebPart.cs
- M3DUtil.cs
- WSSecurityOneDotOneSendSecurityHeader.cs
- PropertyToken.cs
- AutomationPropertyInfo.cs
- TCPClient.cs
- DoWorkEventArgs.cs
- DayRenderEvent.cs
- RectAnimationUsingKeyFrames.cs
- AmbientValueAttribute.cs
- _ListenerRequestStream.cs
- SystemEvents.cs
- IconBitmapDecoder.cs
- DetailsViewRowCollection.cs
- Cursor.cs
- Pair.cs
- Rotation3D.cs
- ConfigXmlCDataSection.cs
- UnhandledExceptionEventArgs.cs
- ISessionStateStore.cs
- CryptoProvider.cs
- IERequestCache.cs
- ClientBuildManager.cs
- ProxyWebPartConnectionCollection.cs
- KeyValuePair.cs
- ExpressionDumper.cs
- ArraySegment.cs
- BitmapEncoder.cs
- Button.cs
- BrowserCapabilitiesFactory35.cs
- BuildResult.cs
- FramingFormat.cs
- LicenseManager.cs
- RowBinding.cs
- util.cs
- NameValuePair.cs
- WindowsRegion.cs
- CustomTokenProvider.cs
- WebServiceHostFactory.cs
- ComponentChangingEvent.cs
- SqlDependency.cs
- ListInitExpression.cs
- METAHEADER.cs
- ClientRuntimeConfig.cs
- ListViewGroupConverter.cs
- AutoResizedEvent.cs
- SiteMapDataSourceView.cs
- HttpInputStream.cs
- SmiRecordBuffer.cs
- TCPClient.cs
- RelationshipConstraintValidator.cs
- HyperLinkField.cs
- ASCIIEncoding.cs
- SqlProfileProvider.cs
- DispatcherExceptionEventArgs.cs
- HideDisabledControlAdapter.cs
- ProxyManager.cs
- SqlDataSourceFilteringEventArgs.cs
- ObjectTypeMapping.cs
- HandlerBase.cs
- RuntimeEnvironment.cs
- PropertyPathConverter.cs
- tibetanshape.cs
- ReceiveActivityDesignerTheme.cs
- WebPermission.cs
- DbSourceCommand.cs
- SiteMapNodeItem.cs
- CodeChecksumPragma.cs
- UnmanagedMemoryStreamWrapper.cs
- PersianCalendar.cs
- InitiatorServiceModelSecurityTokenRequirement.cs
- FontFamilyValueSerializer.cs
- SoapRpcServiceAttribute.cs
- GridViewCellAutomationPeer.cs
- DataGridViewButtonCell.cs
- ObjectKeyFrameCollection.cs
- EventSourceCreationData.cs
- ControlBuilderAttribute.cs
- XmlSchemaRedefine.cs
- Thumb.cs
- JoinTreeNode.cs
- HelpFileFileNameEditor.cs
- CodeStatement.cs
- SmiSettersStream.cs
- WorkflowExecutor.cs
- ProfileManager.cs