Uri * Uri::Create (const char *uri_string, UriKind uri_kind) { GCHandle gchandle; gchandle = GCHandle (Deployment::GetCurrent ()->GetUriFunctions ()->ctor_2 (uri_string, uri_kind)); return !gchandle.IsAllocated () ? NULL : new Uri (gchandle); }
Uri * Uri::Create (const char *uri_string) { GCHandle gchandle; gchandle = Deployment::GetCurrent ()->GetUriFunctions ()->ctor_2 (uri_string, UriKindRelativeOrAbsolute); return !gchandle.IsAllocated () ? NULL : new Uri (gchandle); }
Uri * Uri::Create (const Uri *base_uri, const Uri *relative_uri) { GCHandle gchandle; gchandle = GCHandle (Deployment::GetCurrent ()->GetUriFunctions ()->ctor_4 (base_uri->GetGCHandle ().ToIntPtr (), relative_uri->GetGCHandle ().ToIntPtr ())); return !gchandle.IsAllocated () ? NULL : new Uri (gchandle); }
Uri * Uri::CloneWithScheme (const Uri *uri_to_clone, const char *scheme) { GCHandle gchandle; if (uri_to_clone != NULL && uri_to_clone->GetGCHandle ().IsAllocated ()) gchandle = GCHandle (uri_to_clone->deployment->GetUriFunctions ()->clone_with_scheme (uri_to_clone->GetGCHandle ().ToIntPtr (), scheme)); return gchandle.IsAllocated () ? new Uri (gchandle) : NULL; }
Uri * Uri::Clone (const Uri *uri_to_clone) { GCHandle gchandle; if (uri_to_clone != NULL && uri_to_clone->GetGCHandle ().IsAllocated ()) gchandle = uri_to_clone->deployment->CloneGCHandle (uri_to_clone->GetGCHandle ()); return gchandle.IsAllocated () ? new Uri (gchandle) : NULL; }