我有字符串 “ https://www.AbcXyz.org/schema/Attributes#” 我想将其转换为Uri。代码行是
public static Uri Create(String uri){
Uri u = new Uri(uri);
node.Value = u;
return new Uri(uri);
}
但是此代码正在返回 “ https://www.abcxyz.org/schema/Attributes#”
如何获取我传递的确切字符串?我们可以在URI中使用大写字母吗? 因为我需要在图形数据库中使用该URI来存储三重数据,因为数据库是区分大小写的
答案 0 :(得分:2)
definition属性将返回传递给构造函数的原始字符串。
答案 1 :(得分:0)