XmlSerializationBehavior.GetRelativeName(String, Boolean) 方法

定义

获取相对于当前命名空间的 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::"

返回

String

适用于