Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Description / MetadataLocation.cs / 1 / MetadataLocation.cs
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------
namespace System.ServiceModel.Description
{
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using System.Xml.Serialization;
[XmlRoot(ElementName = MetadataStrings.MetadataExchangeStrings.Location, Namespace = MetadataStrings.MetadataExchangeStrings.Namespace)]
public class MetadataLocation
{
string location;
public MetadataLocation()
{
}
public MetadataLocation(string location)
{
this.Location = location;
}
[XmlText]
public string Location
{
get { return this.location; }
set
{
if (value != null)
{
Uri uri;
if (!Uri.TryCreate(value, UriKind.RelativeOrAbsolute, out uri))
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.SFxMetadataReferenceInvalidLocation, value));
}
this.location = value;
}
}
}
}
// 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
- ValidationHelper.cs
- MruCache.cs
- XmlNavigatorFilter.cs
- LinqTreeNodeEvaluator.cs
- SqlNode.cs
- Profiler.cs
- TaiwanCalendar.cs
- ObjectCacheHost.cs
- TriggerBase.cs
- EnvelopeVersion.cs
- PrintDialog.cs
- PropertyItemInternal.cs
- SqlMethods.cs
- CatalogZone.cs
- WindowsFormsHostAutomationPeer.cs
- EtwTrackingBehaviorElement.cs
- CompiledELinqQueryState.cs
- NameObjectCollectionBase.cs
- _BaseOverlappedAsyncResult.cs
- AdRotator.cs
- Point3D.cs
- CheckoutException.cs
- Constraint.cs
- NavigateEvent.cs
- WebPartHelpVerb.cs
- EtwTrace.cs
- ObjectManager.cs
- ColumnReorderedEventArgs.cs
- ModuleBuilder.cs
- listitem.cs
- Debug.cs
- ScrollItemProviderWrapper.cs
- SecureStringHasher.cs
- CatalogPartChrome.cs
- PeerName.cs
- IndentedWriter.cs
- IPipelineRuntime.cs
- TextElementEnumerator.cs
- DecoderFallbackWithFailureFlag.cs
- PolyQuadraticBezierSegment.cs
- TemplateControlBuildProvider.cs
- DbgUtil.cs
- MatrixAnimationUsingPath.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- Application.cs
- WebRequest.cs
- DataProtection.cs
- TextProperties.cs
- Nullable.cs
- WorkflowServiceHostFactory.cs
- KeyGestureValueSerializer.cs
- HybridDictionary.cs
- formatter.cs
- DataMemberFieldConverter.cs
- ContractAdapter.cs
- XNodeSchemaApplier.cs
- BaseCollection.cs
- InkCanvasSelectionAdorner.cs
- _KerberosClient.cs
- ProfileSettingsCollection.cs
- MLangCodePageEncoding.cs
- SqlDependencyUtils.cs
- StateElement.cs
- StorageRoot.cs
- EventHandlerList.cs
- COM2ExtendedUITypeEditor.cs
- AlternateViewCollection.cs
- TargetControlTypeAttribute.cs
- WebPartZone.cs
- RSAProtectedConfigurationProvider.cs
- DataGridViewRowsAddedEventArgs.cs
- XmlLanguage.cs
- WSDualHttpBindingCollectionElement.cs
- XmlSchemaException.cs
- TypeTypeConverter.cs
- ListViewUpdateEventArgs.cs
- ComponentResourceKey.cs
- DataGridParentRows.cs
- RSAPKCS1KeyExchangeFormatter.cs
- XmlHierarchicalDataSourceView.cs
- InstanceLockException.cs
- BuildProvider.cs
- BitSet.cs
- OleDbWrapper.cs
- WinEventWrap.cs
- LabelLiteral.cs
- WorkflowEventArgs.cs
- GridSplitter.cs
- SystemDropShadowChrome.cs
- PeerTransportListenAddressValidator.cs
- MessageBodyMemberAttribute.cs
- xdrvalidator.cs
- EmptyEnumerable.cs
- HttpProfileBase.cs
- ModifierKeysConverter.cs
- EraserBehavior.cs
- WpfPayload.cs
- Stack.cs
- BufferedOutputAsyncStream.cs
- LocalizationParserHooks.cs