XmlSerializationBehavior.GetRelativeName(String, Boolean) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取相对于当前命名空间的 xml 序列化行为的名称。 如果当前命名空间与此相同,则为。命名空间,则返回。路径名. 如果不是,则返回此。GetFullName ()
public:
System::String ^ GetRelativeName(System::String ^ currentNamespace, bool includeGlobal);
public string GetRelativeName (string currentNamespace, bool includeGlobal);
member this.GetRelativeName : string * bool -> string
Public Function GetRelativeName (currentNamespace As String, includeGlobal As Boolean) As String
参数
- currentNamespace
- String
- includeGlobal
- Boolean
是否在返回全名后是否预置 "global::"