Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.ServiceModel.Discovery / System / ServiceModel / Discovery / VersionCD1 / EndpointDiscoveryMetadataCD1.cs / 1305376 / EndpointDiscoveryMetadataCD1.cs
//---------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------- namespace System.ServiceModel.Discovery.VersionCD1 { using System.Runtime; using System.Xml; using System.Xml.Schema; using System.Xml.Serialization; [XmlSchemaProvider("GetSchema")] [Fx.Tag.XamlVisible(false)] public class EndpointDiscoveryMetadataCD1 : IXmlSerializable { EndpointDiscoveryMetadata endpointDiscoveryMetadata; EndpointDiscoveryMetadataCD1() { endpointDiscoveryMetadata = new EndpointDiscoveryMetadata(); } EndpointDiscoveryMetadataCD1(EndpointDiscoveryMetadata endpointDiscoveryMetadata) { this.endpointDiscoveryMetadata = endpointDiscoveryMetadata; } public static EndpointDiscoveryMetadataCD1 FromEndpointDiscoveryMetadata(EndpointDiscoveryMetadata endpointDiscoveryMetadata) { if (endpointDiscoveryMetadata == null) { throw FxTrace.Exception.ArgumentNull("endpointDiscoveryMetadata"); } return new EndpointDiscoveryMetadataCD1(endpointDiscoveryMetadata); } public static XmlQualifiedName GetSchema(XmlSchemaSet schemaSet) { if (schemaSet == null) { throw FxTrace.Exception.ArgumentNull("schemaSet"); } return SchemaUtility.EnsureProbeMatchSchema(DiscoveryVersion.WSDiscoveryCD1, 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.WSDiscoveryCD1, reader); } public void WriteXml(XmlWriter writer) { this.endpointDiscoveryMetadata.WriteTo(DiscoveryVersion.WSDiscoveryCD1, 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
- RecognizerStateChangedEventArgs.cs
- XmlSchemaFacet.cs
- TextRange.cs
- XmlComplianceUtil.cs
- ProcessProtocolHandler.cs
- LinkClickEvent.cs
- ComponentCommands.cs
- WasEndpointConfigContainer.cs
- RestHandler.cs
- Matrix3DValueSerializer.cs
- VisualTransition.cs
- RuleConditionDialog.cs
- PolygonHotSpot.cs
- SetStateEventArgs.cs
- PreviewPrintController.cs
- BitmapEffectInput.cs
- DataGridViewColumn.cs
- NativeCompoundFileAPIs.cs
- SqlBulkCopyColumnMapping.cs
- ManagedIStream.cs
- Base64Encoding.cs
- NonDualMessageSecurityOverHttp.cs
- Regex.cs
- AutomationPatternInfo.cs
- Visitor.cs
- ObjectFullSpanRewriter.cs
- Process.cs
- SwitchExpression.cs
- ImageDrawing.cs
- UserNameSecurityTokenProvider.cs
- TextElementEditingBehaviorAttribute.cs
- XPathNavigatorReader.cs
- HtmlTable.cs
- InstanceKeyView.cs
- ElementMarkupObject.cs
- GeneralTransformGroup.cs
- TextViewSelectionProcessor.cs
- MessageQueuePermissionEntry.cs
- ParameterReplacerVisitor.cs
- FixedPageStructure.cs
- SizeValueSerializer.cs
- Rectangle.cs
- ProxyDataContractResolver.cs
- _ChunkParse.cs
- IRCollection.cs
- DesignerTransactionCloseEvent.cs
- _Semaphore.cs
- SrgsSemanticInterpretationTag.cs
- ProcessHost.cs
- OciLobLocator.cs
- TransactionManager.cs
- EmbeddedMailObject.cs
- Accessible.cs
- EntityContainer.cs
- SizeFConverter.cs
- SqlUtils.cs
- NumberSubstitution.cs
- SelectionService.cs
- XsdDataContractImporter.cs
- XPathExpr.cs
- SystemThemeKey.cs
- MethodBuilder.cs
- FactoryGenerator.cs
- ColumnPropertiesGroup.cs
- Code.cs
- FrameSecurityDescriptor.cs
- DateTimeEditor.cs
- DataBoundControlDesigner.cs
- TextEditorCopyPaste.cs
- ExpandCollapseProviderWrapper.cs
- TagPrefixAttribute.cs
- DocumentApplicationState.cs
- View.cs
- EpmCustomContentWriterNodeData.cs
- Knowncolors.cs
- DataTransferEventArgs.cs
- GenericEnumerator.cs
- XmlCDATASection.cs
- ConvertTextFrag.cs
- GridViewSortEventArgs.cs
- TemplatePartAttribute.cs
- RelationshipEnd.cs
- ParserOptions.cs
- AsymmetricSignatureFormatter.cs
- Border.cs
- WizardStepBase.cs
- SpellerStatusTable.cs
- GeometryValueSerializer.cs
- DataGridViewCellPaintingEventArgs.cs
- TypeConverterAttribute.cs
- ImplicitInputBrush.cs
- XmlSchemaAttributeGroup.cs
- ListDictionary.cs
- Vector3DKeyFrameCollection.cs
- X509Certificate2.cs
- ErrorsHelper.cs
- HiddenFieldPageStatePersister.cs
- Inflater.cs
- ContravarianceAdapter.cs
- ObjectPersistData.cs