127 references to RelativeOrAbsolute
ComSvcConfig (4)
ComplusEndpointConfigContainer.cs (1)
382if (Uri.IsWellFormedUriString(uri, UriKind.RelativeOrAbsolute))
Tool.cs (2)
223new Uri(address, UriKind.RelativeOrAbsolute), 234new Uri(container.DefaultMexAddress(sourceAppId, component.Component), UriKind.RelativeOrAbsolute),
WasEndpointConfigContainer.cs (1)
233if (Uri.IsWellFormedUriString(uri, UriKind.RelativeOrAbsolute))
PresentationCore (5)
Core\CSharp\MS\Internal\FontFace\CompositeFontParser.cs (2)
893throw new FileFormatException(new Uri(_reader.BaseURI, UriKind.RelativeOrAbsolute), x); 963throw new FileFormatException(new Uri(fileName, UriKind.RelativeOrAbsolute), message, innerException);
Shared\MS\Internal\SecurityHelper.cs (2)
1275if (String.Compare((System.Windows.Navigation.BaseUriHelper.GetResolvedUri(System.Windows.Navigation.BaseUriHelper.BaseUri, new Uri(uri, UriKind.RelativeOrAbsolute))).Scheme, 1280if(!SecurityHelper.CallerHasWebPermission(new Uri(uri,UriKind.RelativeOrAbsolute)))
Shared\System\Windows\Media\TypeConverterHelper.cs (1)
70uriHolder.OriginalUri = new Uri((string)inputString, UriKind.RelativeOrAbsolute);
PresentationFramework (14)
src\Framework\MS\Internal\AppModel\ContentFilePart.cs (1)
113return MS.Internal.MimeTypeMapper.GetMimeTypeFromUri(new Uri(Uri.ToString(),UriKind.RelativeOrAbsolute)).ToString();
src\Framework\MS\Internal\AppModel\ResourcePart.cs (1)
126return MS.Internal.MimeTypeMapper.GetMimeTypeFromUri(new Uri(_name,UriKind.RelativeOrAbsolute)).ToString();
src\Framework\System\Windows\Annotations\Storage\XmlStreamStore.cs (2)
916if (!Uri.IsWellFormedUriString(xmlNamespace, UriKind.RelativeOrAbsolute)) 920Uri namespaceUri = new Uri(xmlNamespace, UriKind.RelativeOrAbsolute);
src\Framework\System\Windows\Data\XmlNamespaceMappingCollection.cs (1)
240Uri uri = new Uri(ns, UriKind.RelativeOrAbsolute);
src\Framework\System\Windows\Documents\DocumentReference.cs (1)
86DocumentsTrace.FixedDocumentSequence.IDF.Trace(string.Format("DocumentReference.GetDocument ({0}, {1})", Source == null ? new Uri("", UriKind.RelativeOrAbsolute) : Source, forceReload));
src\Framework\System\Windows\Documents\FixedPage.cs (3)
677inputUri = new Uri(inputUriStringWithoutFragment, UriKind.RelativeOrAbsolute); 685inputUri = new Uri(startPartUriString, UriKind.RelativeOrAbsolute); 698absoluteUri = new Uri(absoluteUriString.ToString(), UriKind.RelativeOrAbsolute);
src\Framework\System\Windows\Documents\FixedSOMImage.cs (2)
65imageUri = new Uri(imageSource.ToString(), UriKind.RelativeOrAbsolute); 86imageUri = new Uri(imageSource.ToString(), UriKind.RelativeOrAbsolute);
src\Framework\System\Windows\Markup\ParserContext.cs (1)
122_baseUri = new Uri(xmlParserContext.BaseURI, UriKind.RelativeOrAbsolute);
src\Framework\System\Windows\ResourceDictionary.cs (1)
2556public ResourceDictionarySourceUriWrapper(Uri originalUri, Uri versionedUri) : base(originalUri.OriginalString, UriKind.RelativeOrAbsolute)
src\Framework\System\Windows\ThemeDictionaryExtension.cs (1)
131return new System.Uri(uri.ToString(), System.UriKind.RelativeOrAbsolute);
System (12)
net\System\_UriTypeConverter.cs (4)
30public UriTypeConverter() : this(UriKind.RelativeOrAbsolute) { } 75m_UriKind == UriKind.RelativeOrAbsolute ? uri.IsAbsoluteUri ? UriKind.Absolute : UriKind.Relative : m_UriKind); 88m_UriKind == UriKind.RelativeOrAbsolute ? uri.IsAbsoluteUri ? UriKind.Absolute : UriKind.Relative : m_UriKind }); 96m_UriKind == UriKind.RelativeOrAbsolute ? uri.IsAbsoluteUri ? UriKind.Absolute : UriKind.Relative : m_UriKind);
net\System\Net\HttpListenerRequest.cs (1)
547bool success = Uri.TryCreate(referrer, UriKind.RelativeOrAbsolute, out urlReferrer);
net\System\Net\mail\Attachment.cs (1)
271if (!Uri.TryCreate(part.ContentLocation, UriKind.RelativeOrAbsolute, out uri))
net\System\URI.cs (2)
465CreateThis(relativeUri, dontEscape, UriKind.RelativeOrAbsolute); 1754if (!TryCreate(s, UriKind.RelativeOrAbsolute, out obj))
net\System\uribuilder.cs (1)
46Uri tryUri = new Uri(uri, UriKind.RelativeOrAbsolute);
net\System\UriExt.cs (3)
36if ((int)uriKind < (int)UriKind.RelativeOrAbsolute || (int)uriKind > (int)UriKind.Relative) { 349if (TryCreate(relativeUri, UriKind.RelativeOrAbsolute, out relativeLink)) 694if ((int)uriKind < (int)UriKind.RelativeOrAbsolute || (int)uriKind > (int)UriKind.Relative){
System.Activities.Core.Presentation (1)
System\ServiceModel\Activities\Presentation\MessagingContentPropertyEditorResources.xaml.cs (1)
25UriKind.RelativeOrAbsolute);
System.Activities.Presentation (7)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyInspector.xaml.cs (1)
968UriKind.RelativeOrAbsolute));
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Resources\PropertyInspectorResources.cs (1)
94UriKind.RelativeOrAbsolute);
System.Activities.Presentation\System\Activities\Presentation\View\EditorResources.cs (1)
25UriKind.RelativeOrAbsolute);
System.Activities.Presentation\System\Activities\Presentation\WorkflowDesignerColors.cs (2)
117UriKind.RelativeOrAbsolute); 135UriKind.RelativeOrAbsolute);
System.Activities.Presentation\System\Activities\Presentation\WorkflowDesignerIcons.cs (2)
128Uri resourceUri = new Uri(string.Concat(typeof(WorkflowDesignerIcons).Assembly.GetName().Name, @";component/Themes/Icons.WindowsApp.xaml"), UriKind.RelativeOrAbsolute); 166Uri resourceUri = new Uri(string.Concat(typeof(WorkflowDesignerIcons).Assembly.GetName().Name, @";component/Themes/Icons.Default.xaml"), UriKind.RelativeOrAbsolute);
System.Core (1)
System\Security\Cryptography\X509Certificates\AuthenticodeSignatureInformation.cs (1)
40Uri.TryCreate(descriptionUrl, UriKind.RelativeOrAbsolute, out m_descriptionUrl);
System.Data (7)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyInspector.xaml.cs (1)
968UriKind.RelativeOrAbsolute));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Resources\PropertyInspectorResources.cs (1)
94UriKind.RelativeOrAbsolute);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\EditorResources.cs (1)
25UriKind.RelativeOrAbsolute);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowDesignerColors.cs (2)
117UriKind.RelativeOrAbsolute); 135UriKind.RelativeOrAbsolute);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowDesignerIcons.cs (2)
128Uri resourceUri = new Uri(string.Concat(typeof(WorkflowDesignerIcons).Assembly.GetName().Name, @";component/Themes/Icons.WindowsApp.xaml"), UriKind.RelativeOrAbsolute); 166Uri resourceUri = new Uri(string.Concat(typeof(WorkflowDesignerIcons).Assembly.GetName().Name, @";component/Themes/Icons.Default.xaml"), UriKind.RelativeOrAbsolute);
System.Data.Services (6)
parent\Client\System\Data\Services\Client\XmlUtil.cs (2)
36uri = new Uri(CommonUtil.UriToString(uri).ToUpper(CultureInfo.InvariantCulture), UriKind.RelativeOrAbsolute); 57uri = new Uri(value, UriKind.RelativeOrAbsolute);
System\Data\Services\Providers\DataServiceStreamProviderWrapper.cs (1)
299return new Uri(DataServiceStreamProviderWrapper.GetStreamEditMediaUri(mediaLinkEntryUri), UriKind.RelativeOrAbsolute);
System\Data\Services\RequestUriProcessor.cs (1)
235Uri referenceAsUri = new Uri(reference, UriKind.RelativeOrAbsolute);
System\Data\Services\Serializers\SyndicationSerializer.cs (2)
144link.Uri = new Uri(href, UriKind.RelativeOrAbsolute); 1077link.Uri = new Uri(propertyRelativeUri, UriKind.RelativeOrAbsolute);
System.Data.Services.Client (8)
System\Data\Services\Client\AtomParser.cs (4)
546targetEntry.MediaContentUri = new Uri(propertyValue, UriKind.RelativeOrAbsolute); 928Uri idUri = Util.CreateUri(idText, UriKind.RelativeOrAbsolute); 1042Uri uri = Util.CreateUri(href, UriKind.RelativeOrAbsolute); 1045Uri baseUri = Util.CreateUri(this.reader.BaseURI, UriKind.RelativeOrAbsolute);
System\Data\Services\Client\ClientConvert.cs (1)
184return Util.CreateUri(propertyValue, UriKind.RelativeOrAbsolute);
System\Data\Services\Client\DataServiceContext.cs (1)
3558Uri tmp = Util.CreateUri(entitySetName, UriKind.RelativeOrAbsolute);
System\Data\Services\Client\Xml\XmlWrappingReader.cs (1)
468newBaseUri = Util.CreateUri(baseAttribute, UriKind.RelativeOrAbsolute);
System\Data\Services\Client\XmlUtil.cs (1)
57uri = new Uri(value, UriKind.RelativeOrAbsolute);
System.IdentityModel (14)
System\IdentityModel\Configuration\IdentityConfiguration.cs (2)
563handlerConfiguration.AudienceRestriction.AllowedAudienceUris.Add(new Uri(audienceUriElement.Value, UriKind.RelativeOrAbsolute)); 664handlerConfiguration.AudienceRestriction.AllowedAudienceUris.Add(new Uri(audienceUriElement.Value, UriKind.RelativeOrAbsolute));
System\IdentityModel\Metadata\MetadataSerializer.cs (8)
896if (!UriUtil.TryCreateValidUri(binding, UriKind.RelativeOrAbsolute, out bindingUri)) 904if (!UriUtil.TryCreateValidUri(location, UriKind.RelativeOrAbsolute, out locationUri)) 923if (!UriUtil.TryCreateValidUri(responseLocation, UriKind.RelativeOrAbsolute, out responseUri)) 1145if (!UriUtil.TryCreateValidUri(uriContent, UriKind.RelativeOrAbsolute, out uri)) 1330if (!UriUtil.TryCreateValidUri(binding, UriKind.RelativeOrAbsolute, out bindingUri)) 1338if (!UriUtil.TryCreateValidUri(location, UriKind.RelativeOrAbsolute, out locationUri)) 1348if (!UriUtil.TryCreateValidUri(responseLocation, UriKind.RelativeOrAbsolute, out responseUri)) 1413if (!UriUtil.TryCreateValidUri(errorUrlString, UriKind.RelativeOrAbsolute, out errorUrl))
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (3)
957throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(kind == UriKind.RelativeOrAbsolute ? SR.ID0019 : SR.ID0013)); 3455audienceRestriction = new Saml2AudienceRestriction(ReadSimpleUriElement(reader, UriKind.RelativeOrAbsolute, true)); 3458audienceRestriction.Audiences.Add(ReadSimpleUriElement(reader, UriKind.RelativeOrAbsolute, true));
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (1)
2101audienceRestrictionCondition.Audiences.Add(new Uri(audience, UriKind.RelativeOrAbsolute));
System.Runtime.Serialization (4)
System\Runtime\Serialization\CodeExporter.cs (1)
1493if (Uri.TryCreate(dataContractNamespace, UriKind.RelativeOrAbsolute, out uri))
System\Runtime\Serialization\DataContract.cs (1)
1778if (Uri.TryCreate(dataContractNs, UriKind.RelativeOrAbsolute, out uri))
System\Runtime\Serialization\XmlReaderDelegator.cs (2)
768return new Uri(str, UriKind.RelativeOrAbsolute); 785return new Uri(str, UriKind.RelativeOrAbsolute);
System.Security (1)
system\security\cryptography\xml\reference.cs (1)
415System.Uri uri = new System.Uri(m_uri, UriKind.RelativeOrAbsolute);
System.ServiceModel (21)
System\ServiceModel\Channels\HttpChannelHelpers.cs (1)
3393if (Uri.TryCreate(value, UriKind.RelativeOrAbsolute, out uri))
System\ServiceModel\Description\MetadataLocation.cs (1)
36if (!Uri.TryCreate(value, UriKind.RelativeOrAbsolute, out uri))
System\ServiceModel\Description\ServiceReflector.cs (2)
146if (!Uri.TryCreate(ns, UriKind.RelativeOrAbsolute, out uri)) 153if (!Uri.TryCreate(ns, UriKind.RelativeOrAbsolute, out uri))
System\ServiceModel\ServiceConfiguration.cs (1)
204return this.AddServiceEndpoint(contractType, binding, new Uri(address, UriKind.RelativeOrAbsolute));
System\ServiceModel\ServiceHost.cs (3)
32internal static readonly Uri EmptyUri = new Uri(string.Empty, UriKind.RelativeOrAbsolute); 327ServiceEndpoint endpoint = this.AddServiceEndpoint(implementedContract, binding, new Uri(address, UriKind.RelativeOrAbsolute)); 1731ServiceEndpoint endpoint = this.AddServiceEndpoint(implementedContract, binding, new Uri(address, UriKind.RelativeOrAbsolute));
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (3)
308result.ImageUrl = new Uri(reader.ReadElementString(), UriKind.RelativeOrAbsolute); 736result = new UrlSyndicationContent(new Uri(src, UriKind.RelativeOrAbsolute), type); 1082link.Uri = (val != null) ? new Uri(val, UriKind.RelativeOrAbsolute) : null;
System\ServiceModel\Syndication\AtomPub10ServiceDocumentFormatter.cs (3)
157ReadReferencedCategories(reader, referencedCategories, baseUri, new Uri(link, UriKind.RelativeOrAbsolute), version, preserveElementExtensions, preserveAttributeExtensions, maxExtensionSize); 461result.Link = new Uri(reader.Value, UriKind.RelativeOrAbsolute); 564result.BaseUri = new Uri(reader.Value, UriKind.RelativeOrAbsolute);
System\ServiceModel\Syndication\FeedUtils.cs (1)
82Uri newBaseUri = new Uri(newBase, UriKind.RelativeOrAbsolute);
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (6)
506link.Uri = new Uri(uri, UriKind.RelativeOrAbsolute); 685feed.Links.Add(SyndicationLink.CreateSelfLink(new Uri(val, UriKind.RelativeOrAbsolute))); 737result.Links.Add(SyndicationLink.CreateAlternateLink(new Uri(fallbackAlternateLink, UriKind.RelativeOrAbsolute))); 783link.Uri = new Uri(val, UriKind.RelativeOrAbsolute); 916result.BaseUri = new Uri(baseUri, UriKind.RelativeOrAbsolute); 981result.ImageUrl = new Uri(reader.ReadElementString(), UriKind.RelativeOrAbsolute);
System.ServiceModel.Activities (1)
System\ServiceModel\Activities\WorkflowServiceHost.cs (1)
292return AddServiceEndpoint(serviceContractName, binding, new Uri(address, UriKind.RelativeOrAbsolute), listenUri, behaviorConfigurationName);
System.ServiceModel.Discovery (3)
System\ServiceModel\Discovery\DiscoveryMessageSequence.cs (1)
161this.SequenceId = new Uri(sequenceIdString, UriKind.RelativeOrAbsolute);
System\ServiceModel\Discovery\SerializationUtility.cs (2)
326scopeMatchBy = new Uri(scopeMatchByStr, UriKind.RelativeOrAbsolute); 372SerializationUtility.ParseUriList(listOfUrisAsString, listenUris, UriKind.RelativeOrAbsolute);
System.ServiceModel.Web (2)
System\ServiceModel\Description\WCFServiceClientProxyGenerator.cs (1)
173if (Uri.TryCreate(ns, UriKind.RelativeOrAbsolute, out uri))
System\ServiceModel\Dispatcher\QueryStringConverter.cs (1)
142return (!string.IsNullOrEmpty(parameter)) ? new Uri(parameter, UriKind.RelativeOrAbsolute) : null;
System.WorkflowServices (2)
System\ServiceModel\WorkflowServiceHost.cs (2)
87return this.AddServiceEndpoint(implementedContract, binding, new Uri(address, UriKind.RelativeOrAbsolute)); 102return this.AddServiceEndpoint(implementedContract, binding, new Uri(address, UriKind.RelativeOrAbsolute), listenUri);
System.Xml (12)
System\Xml\Core\XmlValidatingReaderImpl.cs (1)
895validator.BaseUri = ( resolver == null ) ? new Uri( outerReader.BaseURI, UriKind.RelativeOrAbsolute ) : resolver.ResolveUri( null, outerReader.BaseURI );
System\Xml\Resolvers\XmlPreloadedResolver.cs (2)
351mappings.Add(new Uri(dtdInfo.publicId, UriKind.RelativeOrAbsolute), dtdInfo); 352mappings.Add(new Uri(dtdInfo.systemId, UriKind.RelativeOrAbsolute), dtdInfo);
System\Xml\Schema\Parser.cs (1)
85schema.BaseUri = new Uri(reader.BaseURI, UriKind.RelativeOrAbsolute);
System\Xml\Schema\ParserAsync.cs (1)
45schema.BaseUri = new Uri(reader.BaseURI, UriKind.RelativeOrAbsolute);
System\Xml\Schema\XmlSchemaSet.cs (3)
328Uri schemaUri = new Uri(schemaDocument.BaseURI, UriKind.RelativeOrAbsolute); 822if (FindSchemaByNSAndUrl(new Uri(reader.BaseURI, UriKind.RelativeOrAbsolute), targetNamespace, null) != null) { 832if (IsSchemaLoaded(new Uri(reader.BaseURI, UriKind.RelativeOrAbsolute), targetNamespace, out schema)) {
System\Xml\XmlConvert.cs (2)
1377if (!Uri.TryCreate(s, UriKind.RelativeOrAbsolute, out uri)) { 1393if (!Uri.TryCreate(s, UriKind.RelativeOrAbsolute, out result)) {
System\Xml\XmlResolver.cs (1)
50Uri uri = new Uri( relativeUri, UriKind.RelativeOrAbsolute );
System\Xml\XmlSecureResolver.cs (1)
49Uri uri = new Uri(securityUrl, UriKind.RelativeOrAbsolute);
WindowsBase (2)
Base\MS\Internal\IO\Packaging\InternalRelationshipCollection.cs (1)
406Uri targetUri = new Uri(targetAttributeValue, UriKind.RelativeOrAbsolute);
Base\System\IO\FileFormatException.cs (1)
138_sourceUri = new Uri(sourceUriString, UriKind.RelativeOrAbsolute);