IXmlSerializer.GetPrefix(String, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Return namespace that corresponds to given prefix If there is no prefix bound to this namespace return null but if generatePrefix is false then return generated prefix.
[Android.Runtime.Register("getPrefix", "(Ljava/lang/String;Z)Ljava/lang/String;", "GetGetPrefix_Ljava_lang_String_ZHandler:Org.XmlPull.V1.IXmlSerializerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public string? GetPrefix (string? namespace, bool generatePrefix);
[<Android.Runtime.Register("getPrefix", "(Ljava/lang/String;Z)Ljava/lang/String;", "GetGetPrefix_Ljava_lang_String_ZHandler:Org.XmlPull.V1.IXmlSerializerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetPrefix : string * bool -> string
Parameters
- namespace
- String
- generatePrefix
- Boolean
Returns
- Attributes
Exceptions
Remarks
Return namespace that corresponds to given prefix If there is no prefix bound to this namespace return null but if generatePrefix is false then return generated prefix.
<b>NOTE:</b> if the prefix is empty string "" and default namespace is bound to this prefix then empty string ("") is returned.
<b>NOTE:</b> prefixes "xml" and "xmlns" are already bound will have values as defined Namespaces in XML specification
Java documentation for org.xmlpull.v1.XmlSerializer.getPrefix(java.lang.String, boolean)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.