XmlNodeEventArgs.NamespaceURI Property
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.
Gets the namespace URI that is associated with the XML node being deserialized.
public:
property System::String ^ NamespaceURI { System::String ^ get(); };
public string NamespaceURI { get; }
member this.NamespaceURI : string
Public ReadOnly Property NamespaceURI As String
Property Value
The namespace URI that is associated with the XML node being deserialized.
Examples
The following example prints the URI of the unknown XML node that caused the UnknownNode event to occur.
private:
void serializer_UnknownNode( Object^ /*sender*/, XmlNodeEventArgs^ e )
{
Console::WriteLine( "UnknownNode Namespace URI: {0}", e->NamespaceURI );
}
private void serializer_UnknownNode
(object sender, XmlNodeEventArgs e)
{
Console.WriteLine
("UnknownNode Namespace URI: " + e.NamespaceURI);
}
Private Sub serializer_UnknownNode _
(ByVal sender As Object, _
ByVal e As XmlNodeEventArgs)
Console.WriteLine("UnknownNode Namespace URI: " & e.NamespaceURI)
End Sub
Applies to
See also
Spolupráca s nami v službe GitHub
Zdroj tohto obsahu nájdete v službe GitHub, kde môžete vytvárať a skúmať problémy a žiadosti o prijatie zmien. Ďalšie informácie nájdete v našom sprievodcovi prispievateľom.