XmlDictionaryWriter.WriteStartElement 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.
When overridden in a derived class, writes the specified start tag.
Overloads
WriteStartElement(XmlDictionaryString, XmlDictionaryString) |
Writes the specified start tag and associates it with the given namespace. |
WriteStartElement(String, XmlDictionaryString, XmlDictionaryString) |
Writes the specified start tag and associates it with the given namespace and prefix. |
WriteStartElement(XmlDictionaryString, XmlDictionaryString)
- Source:
- XmlDictionaryWriter.cs
- Source:
- XmlDictionaryWriter.cs
- Source:
- XmlDictionaryWriter.cs
Writes the specified start tag and associates it with the given namespace.
public:
void WriteStartElement(System::Xml::XmlDictionaryString ^ localName, System::Xml::XmlDictionaryString ^ namespaceUri);
public void WriteStartElement (System.Xml.XmlDictionaryString localName, System.Xml.XmlDictionaryString namespaceUri);
public void WriteStartElement (System.Xml.XmlDictionaryString localName, System.Xml.XmlDictionaryString? namespaceUri);
override this.WriteStartElement : System.Xml.XmlDictionaryString * System.Xml.XmlDictionaryString -> unit
Public Sub WriteStartElement (localName As XmlDictionaryString, namespaceUri As XmlDictionaryString)
Parameters
- localName
- XmlDictionaryString
The local name of the element.
- namespaceUri
- XmlDictionaryString
The namespace URI of the element.
Exceptions
The writer is closed.
Applies to
WriteStartElement(String, XmlDictionaryString, XmlDictionaryString)
- Source:
- XmlDictionaryWriter.cs
- Source:
- XmlDictionaryWriter.cs
- Source:
- XmlDictionaryWriter.cs
Writes the specified start tag and associates it with the given namespace and prefix.
public:
virtual void WriteStartElement(System::String ^ prefix, System::Xml::XmlDictionaryString ^ localName, System::Xml::XmlDictionaryString ^ namespaceUri);
public virtual void WriteStartElement (string prefix, System.Xml.XmlDictionaryString localName, System.Xml.XmlDictionaryString namespaceUri);
public virtual void WriteStartElement (string? prefix, System.Xml.XmlDictionaryString localName, System.Xml.XmlDictionaryString? namespaceUri);
override this.WriteStartElement : string * System.Xml.XmlDictionaryString * System.Xml.XmlDictionaryString -> unit
Public Overridable Sub WriteStartElement (prefix As String, localName As XmlDictionaryString, namespaceUri As XmlDictionaryString)
Parameters
- prefix
- String
The prefix of the element.
- localName
- XmlDictionaryString
The local name of the element.
- namespaceUri
- XmlDictionaryString
The namespace URI of the element.
Exceptions
The writer is closed.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應